erofs: switch erofs_bread() to passing offset instead of block number
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 7 Apr 2024 07:04:50 +0000 (03:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 7 Apr 2024 07:04:50 +0000 (03:04 -0400)
commit469ad583c1293f5d9f45183050b3beeb4a8c3475
treec1574e7e19e7c92ba206be0ca135a195df420bf4
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
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>
fs/erofs/data.c
fs/erofs/dir.c
fs/erofs/internal.h
fs/erofs/namei.c
fs/erofs/super.c
fs/erofs/xattr.c
fs/erofs/zdata.c