aboutsummaryrefslogtreecommitdiffstats
path: root/mm/backing-dev.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-06-10 06:07:27 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-07-06 02:54:03 -0400
commit9c3a8ee8a1d72c5c0d7fbdf426d80e270ddfa54c (patch)
treefa131760a61f66afeede852622ede0d716965489 /mm/backing-dev.c
parent06d738fa9155ff16dba3d7e501ba4581d01a98cb (diff)
writeback: remove writeback_inodes_wbc
This was just an odd wrapper around writeback_inodes_wb. Removing this also allows to get rid of the bdi member of struct writeback_control which was rather out of place there. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r--mm/backing-dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c
index 660a87a22511..6e0b09a1ec2c 100644
--- a/mm/backing-dev.c
+++ b/mm/backing-dev.c
@@ -340,14 +340,13 @@ int bdi_has_dirty_io(struct backing_dev_info *bdi)
340static void bdi_flush_io(struct backing_dev_info *bdi) 340static void bdi_flush_io(struct backing_dev_info *bdi)
341{ 341{
342 struct writeback_control wbc = { 342 struct writeback_control wbc = {
343 .bdi = bdi,
344 .sync_mode = WB_SYNC_NONE, 343 .sync_mode = WB_SYNC_NONE,
345 .older_than_this = NULL, 344 .older_than_this = NULL,
346 .range_cyclic = 1, 345 .range_cyclic = 1,
347 .nr_to_write = 1024, 346 .nr_to_write = 1024,
348 }; 347 };
349 348
350 writeback_inodes_wbc(&wbc); 349 writeback_inodes_wb(&bdi->wb, &wbc);
351} 350}
352 351
353/* 352/*