]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Check for extent overflow when punching a hole
authorChandan Babu R <chandanrlinux@gmail.com>
Sat, 23 Jan 2021 00:48:11 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:54:47 +0000 (16:54 -0800)
commitd7ff321069ca9450d57682165fb1ef9719c1896a
tree3eb09dee8e0beb0bd23eed4541b324f0dfd035e1
parent25ce4ae5d21a39fde2fb41c119db9da99e2cf63d
xfs: Check for extent overflow when punching a hole

The extent mapping the file offset at which a hole has to be
inserted will be split into two extents causing extent count to
increase by 1.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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_item.c
fs/xfs/xfs_bmap_util.c