]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: Check for extent overflow when punching a hole
authorChandan Babu R <chandanrlinux@gmail.com>
Mon, 5 Apr 2021 21:58:14 +0000 (17:58 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 5 Apr 2021 21:58:14 +0000 (17:58 -0400)
commit65f4eca092adef55b46037779d02d4e956a9bdb7
tree538e7a4178f5665b1e03a52063e294314c632d61
parent75cb5a608ce46c0705cc577011b758ea9ce5ba7c
xfs: Check for extent overflow when punching a hole

Source kernel commit: 85ef08b5a667615bc7be5058259753dc42a7adcd

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_inode_fork.h