]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: factor out quotaoff intent AIL removal and memory free
authorBrian Foster <bfoster@redhat.com>
Mon, 16 Mar 2020 21:26:09 +0000 (14:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Mar 2020 15:12:23 +0000 (08:12 -0700)
commitfa954c1f1451d44fdb56efe5179ee9a92e192630
treee673618c4ec290191fb4bff297af0de6a53e0e54
parentb471d22ee67f99329b53b0b6afd6a5571df558eb
xfs: factor out quotaoff intent AIL removal and memory free

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>
fs/xfs/xfs_dquot_item.c
fs/xfs/xfs_dquot_item.h