xfs: don't allow SWAPEXT if we'd screw up quota accounting
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 May 2020 23:42:51 +0000 (16:42 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 May 2020 16:40:56 +0000 (09:40 -0700)
commit765d3c393c222c3bb281885ea211c8ebc08250b4
tree44bebfad379400a07d796ab5acaed2e9bedd9aa4
parent78bba5c812cc651cee51b64b786be926ab7fe2a9
xfs: don't allow SWAPEXT if we'd screw up quota accounting

Since the old SWAPEXT ioctl doesn't know how to adjust quota ids,
bail out of the ids don't match and quotas are enabled.

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