writeback: split writeback_inodes_wb
authorChristoph Hellwig <hch@lst.de>
Thu, 10 Jun 2010 10:07:54 +0000 (12:07 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 6 Jul 2010 06:54:08 +0000 (08:54 +0200)
The case where we have a superblock doesn't require a loop here as we scan
over all inodes in writeback_sb_inodes. Split it out into a separate helper
to make the code simpler.  This also allows to get rid of the sb member in
struct writeback_control, which was rather out of place there.

Also update the comments in writeback_sb_inodes that explain the handling
of inodes from wrong superblocks.

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

No differences found