]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: pass alloc flags through to xfs_extent_busy_flush()
authorDave Chinner <dchinner@redhat.com>
Wed, 6 Sep 2023 11:33:23 +0000 (13:33 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 7 Sep 2023 09:55:50 +0000 (11:55 +0200)
commit01f05365c9456a598164a7d49eabcac22500fa1f
treeef0011717f6ed3cc46e3abdb6a43adc2ea53bb85
parentef16737e44b9274fddcc736ec2da5c07d5c4f703
xfs: pass alloc flags through to xfs_extent_busy_flush()

Source kernel commit: 6a2a9d776c4ae24a797e25eed2b9f7f33f756296

To avoid blocking in xfs_extent_busy_flush() when freeing extents
and the only busy extents are held by the current transaction, we
need to pass the XFS_ALLOC_FLAG_FREEING flag context all the way
into xfs_extent_busy_flush().

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/libxfs_priv.h
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h