diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-07 03:04:50 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-07 03:04:50 -0400 |
commit | 469ad583c1293f5d9f45183050b3beeb4a8c3475 (patch) | |
tree | c1574e7e19e7c92ba206be0ca135a195df420bf4 /fs/erofs/namei.c | |
parent | 39cd87c4eb2b893354f3b850f916353f2658ae6f (diff) |
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.c | 2 |
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); |