xfs: remove log item from AIL in xfs_qm_dqflush after a shutdown
authorChristoph Hellwig <hch@infradead.org>
Mon, 23 Apr 2012 05:58:31 +0000 (15:58 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:20:24 +0000 (16:20 -0500)
commitdea9609527a55b65638a6323894269334dfe6ec5
tree841b86d16eee04480852e40414701e61bed6f966
parent7582df516c93046b8d2111a780c69de77f9882fb
xfs: remove log item from AIL in xfs_qm_dqflush after a shutdown

If a filesystem has been forced shutdown we are never going to write dquots
to disk, which means the dquot items will stay in the AIL forever.
Currently that is not a problem, but a pending chance requires us to
empty the AIL before shutting down the filesystem, in which case this
behaviour is lethal.  Make sure to remove the log item from the AIL
to allow emptying the AIL on shutdown filesystems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_dquot.c