xfs: remove log item from AIL in xfs_iflush after a shutdown
authorChristoph Hellwig <hch@infradead.org>
Mon, 23 Apr 2012 05:58:32 +0000 (15:58 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:20:25 +0000 (16:20 -0500)
commit32ce90a4b79155a155de2b284d8b69023e5e8fea
tree1280a85dea9061a8089a39fccc8a5ce0fc222e62
parentdea9609527a55b65638a6323894269334dfe6ec5
xfs: remove log item from AIL in xfs_iflush after a shutdown

If a filesystem has been forced shutdown we are never going to write inodes
to disk, which means the inode items will stay in the AIL until we free
the inode. Currently that is not a problem, but a pending change requires us
to empty the AIL before shutting down the filesystem. In that case leaving
the inode in the AIL 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
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_sync.c