]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: factor out quotaoff intent AIL removal and memory free
authorBrian Foster <bfoster@redhat.com>
Wed, 26 Oct 2022 06:28:31 +0000 (11:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2022 08:20:33 +0000 (10:20 +0200)
commit5cfb0a95556a9f5f742f325083b630c918f91f5a
tree0ef060a958d4e23df6a0ea52c87f0a92a678af2f
parent8f8f5b129c96bfa2d2ab74b630c892dc460e8c73
xfs: factor out quotaoff intent AIL removal and memory free

commit 789a36fa57d76a1de9f7b5c2cb9c3d561b34a222 upstream.

AIL removal of the quotaoff start intent and free of both intents is
hardcoded to the ->iop_committed() handler of the end intent. Factor
out the start intent handling code so it can be used in a future
patch to properly handle quotaoff errors. Use xfs_trans_ail_remove()
instead of the _delete() variant to acquire the AIL lock and also
handle cases where an intent might not reside in the AIL at the
time of a failure.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_dquot_item.c
fs/xfs/xfs_dquot_item.h