xfs: validate fsmap offsets specified in the query keys
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Jun 2023 00:39:45 +0000 (17:39 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 2 Jul 2023 16:26:19 +0000 (09:26 -0700)
commit3ee9351e74907fe3acb0721c315af25b05dc87da
tree96b9368bccd791f07e42796383aeaa3ddf8137b0
parenta949a1c2a198e048630a8b0741a99b85a5d88136
xfs: validate fsmap offsets specified in the query keys

Improve the validation of the fsmap offset fields in the query keys and
move the validation to the top of the function now that we have pushed
the low key adjustment code downwards.

Also fix some indenting issues that aren't worth a separate patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_fsmap.c