Commit 0650e61d authored by Dave Chinner's avatar Dave Chinner Committed by Long Li
Browse files

xfs: pass alloc flags through to xfs_extent_busy_flush()

mainline inclusion
from mainline-v6.4-rc6
commit 6a2a9d77
category: bugfix
bugzilla: 188883, https://gitee.com/openeuler/kernel/issues/I76JSK
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=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: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChandan Babu R <chandan.babu@oracle.com>

Conflicts: fs/xfs/libxfs/xfs_alloc.c
      fs/xfs/libxfs/xfs_alloc.h
Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent 0337b315
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment