]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: only assert new size for datafork during truncate extents
authorLong Li <leo.lilong@huawei.com>
Tue, 17 Mar 2026 01:51:52 +0000 (09:51 +0800)
committerCarlos Maiolino <cem@kernel.org>
Mon, 23 Mar 2026 09:47:27 +0000 (10:47 +0100)
commite942498385bf80f4d6d075b47174035545eb6a2e
treea7261914bbd16a435e83ec4394b0de120b8ec801
parente5966096d0856d071269cb5928d6bc33342d2dfd
xfs: only assert new size for datafork during truncate extents

The assertion functions properly because we currently only truncate the
attr to a zero size. Any other new size of the attr is not preempted.
Make this assertion is specific to the datafork, preparing for
subsequent patches to truncate the attribute to a non-zero size.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Long Li <leo.lilong@huawei.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_inode.c