]> 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)
commitbcc561f21f115437a010307420fc43d91be91c66
tree83114d7d111d220764d8ee4afca14c0a75211a71
parentee898d78c3540b44270a5fdffe208d7bbb219d93
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