xfs: ensure that fpunch, fcollapse, and finsert operations are aligned to rt extent...
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Sep 2020 21:21:06 +0000 (14:21 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:42 +0000 (20:52 -0700)
commitfe341eb151ec0ba80fb74edd6201fc78e5232b6b
treef6efbc2f4dbb906879acf20bc7905647d3ba51ca
parent2a6ca4baed620303d414934aa1b7b0a8e7bab05f
xfs: ensure that fpunch, fcollapse, and finsert operations are aligned to rt extent size

Make sure that any fallocate operation that requires the range to be
block-aligned also checks that the range is aligned to the realtime
extent size.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_util.c