writeback: fix writeback_inodes_wb from writeback_inodes_sb
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Jun 2010 16:14:58 +0000 (18:14 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 11 Jun 2010 10:58:07 +0000 (12:58 +0200)
commitd19de7edf59cdd586777b009e0e8fbe5412dd35f
tree8b6b56c705d7ed6fc22fe53b4d49b41372874afa
parentcf37e972478ec58a8a54a6b4f951815f0ae28f78
writeback: fix writeback_inodes_wb from writeback_inodes_sb

When we call writeback_inodes_wb from writeback_inodes_sb we always have
s_umount held, which currently makes the whole operation a no-op.

But if we are called to write out inodes for a specific superblock we always
have s_umount held, so replace the incorrect logic checking for WB_SYNC_ALL
which only worked by coincidence with the proper check for an explicit
superblock argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/fs-writeback.c