summaryrefslogtreecommitdiff
path: root/fs/erofs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-04-07 10:04:50 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2024-04-07 10:04:50 +0300
commit469ad583c1293f5d9f45183050b3beeb4a8c3475 (patch)
treec1574e7e19e7c92ba206be0ca135a195df420bf4 /fs/erofs/namei.c
parent39cd87c4eb2b893354f3b850f916353f2658ae6f (diff)
downloadlinux-469ad583c1293f5d9f45183050b3beeb4a8c3475.tar.xz
erofs: switch erofs_bread() to passing offset instead of block number
Callers are happier that way, especially since we no longer need to play with splitting offset into block number and offset within block, passing the former to erofs_bread(), then adding the latter... erofs_bread() always reads entire pages, anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/erofs/namei.c')
-rw-r--r--fs/erofs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/namei.c b/fs/erofs/namei.c
index f0110a78acb2..11afa48996a3 100644
--- a/fs/erofs/namei.c
+++ b/fs/erofs/namei.c
@@ -100,7 +100,7 @@ static void *erofs_find_target_block(struct erofs_buf *target,
struct erofs_dirent *de;
buf.inode = dir;
- de = erofs_bread(&buf, mid, EROFS_KMAP);
+ de = erofs_bread(&buf, erofs_pos(dir->i_sb, mid), EROFS_KMAP);
if (!IS_ERR(de)) {
const int nameoff = nameoff_from_disk(de->nameoff, bsz);
const int ndirents = nameoff / sizeof(*de);