]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: assert that we don't enter agfl freeing with a non-permanent transaction
authorBrian Foster <bfoster@redhat.com>
Wed, 24 Jul 2019 19:54:06 +0000 (15:54 -0400)
committerEric Sandeen <sandeen@redhat.com>
Wed, 24 Jul 2019 19:54:06 +0000 (15:54 -0400)
commitd85d3424765db52017302c54a352d3d51fe8755d
tree5fd201cd50717378e10cd67d831e8b9972ed8578
parentb8b9c3c00166a1e4ffde6b54efba19257f1aced4
xfs: assert that we don't enter agfl freeing with a non-permanent transaction

Source kernel commit: 362f5e745ae2ee2be9cf181b3a22917d619b81a1

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c