erofs: don't round offset down for erofs_read_metabuf()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 25 Apr 2024 19:59:44 +0000 (20:59 +0100)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 17 May 2024 17:52:48 +0000 (01:52 +0800)
commit4afe6b8d21e5ff644fedd7db5673fe5a48b177b7
tree962ae1c6d5e1e9368132e822886278a79f412e97
parent076d965eb812f2ad88daf693d745ea1f28bf8f80
erofs: don't round offset down for erofs_read_metabuf()

There's only one place where struct z_erofs_maprecorder ->kaddr is
used not in the same function that has assigned it -
the value read in unpack_compacted_index() gets calculated in
z_erofs_load_compact_lcluster().  With minor massage we can switch
to storing it with offset in block already added.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20240425195944.GE1031757@ZenIV
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/zmap.c