fs: skip I_FREEING inodes in writeback_sb_inodes
authorChristoph Hellwig <hch@lst.de>
Sun, 24 Oct 2010 17:40:46 +0000 (19:40 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Oct 2010 01:26:16 +0000 (21:26 -0400)
commit9843b76aae80293f5b5a0e275360627508595ce5
tree522fc7b8435d13e2a6c329d93a597173ce6956a7
parenta031878670ac8fe466859d4c1506bd91ae48678c
fs: skip I_FREEING inodes in writeback_sb_inodes

Skip I_FREEING inodes just like I_WILL_FREE and I_NEW when walking the
writeback lists.  Currenly this can't happen, but once we move from
inode_lock to more fine grained locking we can have an inode that's
still on the writeback lists but has I_FREEING set, and we absolutely
need to skip it here, just like we do for all other inode list walks.

Based on a patch from Dave Chinner.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fs-writeback.c