xfs: assert that we don't enter agfl freeing with a non-permanent transaction
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Apr 2019 14:54:06 +0000 (07:54 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 23 Apr 2019 15:36:23 +0000 (08:36 -0700)
commit362f5e745ae2ee2be9cf181b3a22917d619b81a1
tree15677f6a8309569104233403e19b77cdc3f095dd
parent945c941fcd82bac3a8ea2b89c635651f323bd609
xfs: assert that we don't enter agfl freeing with a non-permanent transaction

Block allocation requires a permanent transaction for deferred AGFL
frees.  Add an assert in the block allocation path to make explicit and
obvious to future callers the requirement of a transaction with a
permanent reservation.

Reported-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
[darrick: split this out from the previous patch per hch request]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_alloc.c