mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
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
3 changed files with 6 additions and 6 deletions
|
@ -934,7 +934,7 @@ static void bdi_split_work_to_wbs(struct backing_dev_info *bdi,
|
||||||
#endif /* CONFIG_CGROUP_WRITEBACK */
|
#endif /* CONFIG_CGROUP_WRITEBACK */
|
||||||
|
|
||||||
void wb_start_writeback(struct bdi_writeback *wb, long nr_pages,
|
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;
|
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->sync_mode = WB_SYNC_NONE;
|
||||||
work->nr_pages = nr_pages;
|
work->nr_pages = nr_pages;
|
||||||
work->range_cyclic = range_cyclic;
|
work->range_cyclic = 1;
|
||||||
work->reason = reason;
|
work->reason = reason;
|
||||||
work->auto_free = 1;
|
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)
|
list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node)
|
||||||
wb_start_writeback(wb, wb_split_bdi_pages(wb, nr_pages),
|
wb_start_writeback(wb, wb_split_bdi_pages(wb, nr_pages),
|
||||||
true, reason);
|
reason);
|
||||||
}
|
}
|
||||||
rcu_read_unlock();
|
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,
|
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_start_background_writeback(struct bdi_writeback *wb);
|
||||||
void wb_workfn(struct work_struct *work);
|
void wb_workfn(struct work_struct *work);
|
||||||
void wb_wakeup_delayed(struct bdi_writeback *wb);
|
void wb_wakeup_delayed(struct bdi_writeback *wb);
|
||||||
|
|
|
@ -1994,7 +1994,7 @@ void laptop_mode_timer_fn(unsigned long data)
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
list_for_each_entry_rcu(wb, &q->backing_dev_info->wb_list, bdi_node)
|
list_for_each_entry_rcu(wb, &q->backing_dev_info->wb_list, bdi_node)
|
||||||
if (wb_has_dirty_io(wb))
|
if (wb_has_dirty_io(wb))
|
||||||
wb_start_writeback(wb, nr_pages, true,
|
wb_start_writeback(wb, nr_pages,
|
||||||
WB_REASON_LAPTOP_TIMER);
|
WB_REASON_LAPTOP_TIMER);
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue