+4
−4
+3
−2
+2
−2
Loading
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9VTE3 CVE: NA Reference: https://lore.kernel.org/linux-fsdevel/20240529095206.2568162-1-yi.zhang@huaweicloud.com/ -------------------------------- iomap_truncate_page() always assumes the block size of the truncating inode is i_blocksize(), this is not always true for some filesystems, e.g. XFS does extent size alignment for realtime inodes. Drop this assumption and pass the block size for zeroing into iomap_truncate_page(), allow filesystems to indicate the correct block size. Fixes: fabcdd2d ("fs: xfs: Introduce FORCEALIGN inode flag") Suggested-by:Dave Chinner <david@fromorbit.com> Signed-off-by:
Zhang Yi <yi.zhang@huawei.com> Signed-off-by:
Long Li <leo.lilong@huawei.com>