]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Check for extent overflow when swapping extents
authorChandan Babu R <chandanrlinux@gmail.com>
Sat, 23 Jan 2021 00:48:15 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:54:48 +0000 (16:54 -0800)
commit2190f660c666e27c194fbe6b3493cb3dccbfb90b
tree83114d7d111d220764d8ee4afca14c0a75211a71
parent40cdd9d348ddd77dce926091456d20cdbdc6c227
xfs: Check for extent overflow when swapping extents

Removing an initial range of source/donor file's extent and adding a new
extent (from donor/source file) in its place will cause extent count to
increase by 1.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_inode_fork.h
fs/xfs/xfs_bmap_util.c