xfs: try to idiot-proof the allocators
authorDarrick J. Wong <djwong@kernel.org>
Fri, 10 Mar 2023 21:42:08 +0000 (13:42 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 16 Mar 2023 16:32:18 +0000 (09:32 -0700)
commit6de4b1ab470fe52351415217ac6dffddee571c45
treeccd614bfec9216b0818fd71a9d9469481355044a
parent8ac5b996bf5199f15b7687ceae989f8b2a410dda
xfs: try to idiot-proof the allocators

In porting his development branch to 6.3-rc1, yours truly has
repeatedly screwed up the args->pag being fed to the xfs_alloc_vextent*
functions.  Add some debugging assertions to test the preconditions
required of the callers.

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