diff options
author | 2025-05-06 09:20:07 +0800 | |
---|---|---|
committer | 2025-05-20 10:30:52 -0400 | |
commit | 29ec9bed2395061350249ae356fb300dd82a78e7 (patch) | |
tree | df7a3185493d0cd5a591635ec5954482f9960025 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ext4: fix out of bounds punch offset (diff) | |
download | wireguard-linux-29ec9bed2395061350249ae356fb300dd82a78e7.tar.xz wireguard-linux-29ec9bed2395061350249ae356fb300dd82a78e7.zip |
ext4: fix incorrect punch max_end
For the extents based inodes, the maxbytes should be sb->s_maxbytes
instead of sbi->s_bitmap_maxbytes. Additionally, for the calculation of
max_end, the -sb->s_blocksize operation is necessary only for
indirect-block based inodes. Correct the maxbytes and max_end value to
correct the behavior of punch hole.
Fixes: 2da376228a24 ("ext4: limit length to bitmap_maxbytes - blocksize in punch_hole")
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Link: https://patch.msgid.link/20250506012009.3896990-2-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions