]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: try to idiot-proof the allocators
authorDarrick J. Wong <djwong@kernel.org>
Tue, 9 May 2023 09:30:49 +0000 (11:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 May 2023 13:02:25 +0000 (15:02 +0200)
commitfc59ca7ec2f9b1a673346c2452f57bbc6ab570d0
tree66d0b6ca51301bee9349602f90738308e63d0391
parent36076dc9a1e8ae003256617c94ae9dacbd707047
xfs: try to idiot-proof the allocators

Source kernel commit: 6de4b1ab470fe52351415217ac6dffddee571c45

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_alloc.c