summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhan Xusheng <zhanxusheng@xiaomi.com>2026-11-11 22:15:29 +0800
committerGao Xiang <xiang@kernel.org>2026-11-11 20:41:04 +0100
commit8b4ddd28ec5bdec14cefc57f8bf792cb4764d724 (patch)
tree76d0d2c09da04d885b420a368b143d7b929a91dd /tools/perf/scripts/python
parent7c26dc33ea7bb677db294bfb4e58d4207477c9e3 (diff)
erofs: reset buf->off in erofs_init_metabuf()
erofs_init_metabuf() sets buf->off only for the block device and keeps the old value when it switches to the metabox or the managed cache. erofs_bread() adds buf->off to every offset, so the result depends on how the buffer was last initialized. getxattr and listxattr init the same buffer twice, for the inline and the shared xattrs, with in_metabox taken from different places. On a block device mount with fsoffset=, if the inode is outside the metabox and COMPAT_SHARED_EA_IN_METABOX is set, the shared xattrs are read at their metabox offset plus fsoffset. The same image mounted file-backed returns the right values. Reset buf->off on every init. Fixes: 414091322c63 ("erofs: implement metadata compression") Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com> Reviewed-by: Gao Xiang <xiang@kernel.org> Signed-off-by: Gao Xiang (Docker) <xiang@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions