xfs: improve FSGROWFSRT precondition checking
authorDarrick J. Wong <djwong@kernel.org>
Mon, 12 Jul 2021 19:58:48 +0000 (12:58 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 15 Jul 2021 16:58:42 +0000 (09:58 -0700)
commit0e2af9296f4f9c4c815ced2beb21093af7c38644
treef4315f59c5944324ed67b05126eb396383f1d3cd
parent5aa5b278237f356f86205c4b03d4cc64a293850a
xfs: improve FSGROWFSRT precondition checking

Improve the checking at the start of a realtime grow operation so that
we avoid accidentally set a new extent size that is too large and avoid
adding an rt volume to a filesystem with rmap or reflink because we
don't support rt rmap or reflink yet.

While we're at it, separate the checks so that we're only testing one
aspect at a time.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_rtalloc.c