diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-25 21:58:46 +0200 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2024-05-17 19:46:18 +0200 |
commit | e09815446d6944fc5590a6e5f15dd51697202441 (patch) | |
tree | 8f01e00085258f62dde7006b3a910b2e7cd4d2bb /fs/erofs/fscache.c | |
parent | erofs: clean up erofs_show_options() (diff) | |
download | linux-e09815446d6944fc5590a6e5f15dd51697202441.tar.xz linux-e09815446d6944fc5590a6e5f15dd51697202441.zip |
erofs: mechanically convert erofs_read_metabuf() to offsets
just lift the call of erofs_pos() into the callers; it will
collapse in most of them, but that's better done caller-by-caller.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20240425195846.GC1031757@ZenIV
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/fscache.c')
-rw-r--r-- | fs/erofs/fscache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/fscache.c b/fs/erofs/fscache.c index 62da538d91cb..ac618b3484f1 100644 --- a/fs/erofs/fscache.c +++ b/fs/erofs/fscache.c @@ -282,7 +282,7 @@ static int erofs_fscache_data_read_slice(struct erofs_fscache_rq *req) blknr = erofs_blknr(sb, map.m_pa); size = map.m_llen; - src = erofs_read_metabuf(&buf, sb, blknr, EROFS_KMAP); + src = erofs_read_metabuf(&buf, sb, erofs_pos(sb, blknr), EROFS_KMAP); if (IS_ERR(src)) return PTR_ERR(src); |