]> 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)
commit5a6760c4198073719a0a29432a0d960a08cac588
tree0ef060a958d4e23df6a0ea52c87f0a92a678af2f
parentee04d7404f2e72750423e2d044bda58c7c04a193
xfs: factor out quotaoff intent AIL removal and memory free

commit fa954c1f1451d44fdb56efe5179ee9a92e192630 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