writeback: remove 'range_cyclic' argument for wb_start_writeback()
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Sep 2017 17:25:03 +0000 (11:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 14:38:17 +0000 (08:38 -0600)
All the callers pass in 'true' for range_cyclic, so kill the
argument.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/fs-writeback.c
include/linux/backing-dev.h
mm/page-writeback.c

index 65e6992d8719aeae3a527d5ac133bd32e86f25ca..fe555bce886c1ec00c9234a2a585570ca5d0f961 100644 (file)
@@ -934,7 +934,7 @@ static void bdi_split_work_to_wbs(struct backing_dev_info *bdi,
 #endif /* CONFIG_CGROUP_WRITEBACK */
 
 void wb_start_writeback(struct bdi_writeback *wb, long nr_pages,
-                       bool range_cyclic, enum wb_reason reason)
+                       enum wb_reason reason)
 {
        struct wb_writeback_work *work;
 
@@ -955,7 +955,7 @@ void wb_start_writeback(struct bdi_writeback *wb, long nr_pages,
 
        work->sync_mode = WB_SYNC_NONE;
        work->nr_pages  = nr_pages;
-       work->range_cyclic = range_cyclic;
+       work->range_cyclic = 1;
        work->reason    = reason;
        work->auto_free = 1;
 
@@ -1971,7 +1971,7 @@ void wakeup_flusher_threads(enum wb_reason reason)
 
                list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node)
                        wb_start_writeback(wb, wb_split_bdi_pages(wb, nr_pages),
-                                               true, reason);
+                                               reason);
        }
        rcu_read_unlock();
 }
index 854e1bdd0b2a4978aa739d056103400ed65e1381..0f63493de9e7d4ac3d94222a556dffe84880e011 100644 (file)
@@ -39,7 +39,7 @@ static inline struct backing_dev_info *bdi_alloc(gfp_t gfp_mask)
 }
 
 void wb_start_writeback(struct bdi_writeback *wb, long nr_pages,
-                       bool range_cyclic, enum wb_reason reason);
+                       enum wb_reason reason);
 void wb_start_background_writeback(struct bdi_writeback *wb);
 void wb_workfn(struct work_struct *work);
 void wb_wakeup_delayed(struct bdi_writeback *wb);
index 0b9c5cbe8eba086b385e489eefac7d601aed2535..dede5335512326009320bf9358c0ce5075dbff74 100644 (file)
@@ -1994,8 +1994,8 @@ void laptop_mode_timer_fn(unsigned long data)
        rcu_read_lock();
        list_for_each_entry_rcu(wb, &q->backing_dev_info->wb_list, bdi_node)
                if (wb_has_dirty_io(wb))
-                       wb_start_writeback(wb, nr_pages, true,
-                                          WB_REASON_LAPTOP_TIMER);
+                       wb_start_writeback(wb, nr_pages,
+                                               WB_REASON_LAPTOP_TIMER);
        rcu_read_unlock();
 }