diff options
author | Christoph Hellwig <hch@lst.de> | 2010-06-10 06:07:54 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-07-06 02:54:08 -0400 |
commit | edadfb10ba35da7253541e4155aa92eff758ebe6 (patch) | |
tree | a3c676f7b2c9b301d7e1948febeaba76ea1c5850 /include | |
parent | 9c3a8ee8a1d72c5c0d7fbdf426d80e270ddfa54c (diff) |
writeback: split writeback_inodes_wb
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/writeback.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index f6756f6a610c..c24eca71e80c 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
@@ -27,8 +27,6 @@ enum writeback_sync_modes { | |||
27 | * in a manner such that unspecified fields are set to zero. | 27 | * in a manner such that unspecified fields are set to zero. |
28 | */ | 28 | */ |
29 | struct writeback_control { | 29 | struct writeback_control { |
30 | struct super_block *sb; /* if !NULL, only write inodes from | ||
31 | this super_block */ | ||
32 | enum writeback_sync_modes sync_mode; | 30 | enum writeback_sync_modes sync_mode; |
33 | unsigned long *older_than_this; /* If !NULL, only write back inodes | 31 | unsigned long *older_than_this; /* If !NULL, only write back inodes |
34 | older than this */ | 32 | older than this */ |