Skip to content
Commit 4afe6b8d authored by Al Viro's avatar Al Viro Committed by Gao Xiang
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20240425195944.GE1031757@ZenIV


Signed-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
parent 076d965e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment