mirror of https://gitee.com/openkylin/linux.git
writeback: remove 'range_cyclic' argument for wb_start_writeback()
All the callers pass in 'true' for range_cyclic, so kill the argument. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d31cd9d326
commit
47410d88f6
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue