summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-09-20 10:58:25 -0400
committerJens Axboe <axboe@kernel.dk>2017-10-03 10:38:17 -0400
commit9ba4b2dfafaa711b41cc2102b0e9a529f3981218 (patch)
tree71028702d3d6affdc6af86db8528608de326ae32 /fs
parentbc48f001de12225b6430a243504aa60b5ae8a91a (diff)
fs: kill 'nr_pages' argument from wakeup_flusher_threads()
Everybody is passing in 0 now, let's get rid of the argument. Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs-writeback.c9
-rw-r--r--fs/sync.c2
2 files changed, 5 insertions, 6 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 245c430a2e41..bb6148dc6d24 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -1947,12 +1947,12 @@ void wb_workfn(struct work_struct *work)
1947} 1947}
1948 1948
1949/* 1949/*
1950 * Start writeback of `nr_pages' pages. If `nr_pages' is zero, write back 1950 * Wakeup the flusher threads to start writeback of all currently dirty pages
1951 * the whole world.
1952 */ 1951 */
1953void wakeup_flusher_threads(long nr_pages, enum wb_reason reason) 1952void wakeup_flusher_threads(enum wb_reason reason)
1954{ 1953{
1955 struct backing_dev_info *bdi; 1954 struct backing_dev_info *bdi;
1955 long nr_pages;
1956 1956
1957 /* 1957 /*
1958 * If we are expecting writeback progress we must submit plugged IO. 1958 * If we are expecting writeback progress we must submit plugged IO.
@@ -1960,8 +1960,7 @@ void wakeup_flusher_threads(long nr_pages, enum wb_reason reason)
1960 if (blk_needs_flush_plug(current)) 1960 if (blk_needs_flush_plug(current))
1961 blk_schedule_flush_plug(current); 1961 blk_schedule_flush_plug(current);
1962 1962
1963 if (!nr_pages) 1963 nr_pages = get_nr_dirty_pages();
1964 nr_pages = get_nr_dirty_pages();
1965 1964
1966 rcu_read_lock(); 1965 rcu_read_lock();
1967 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) { 1966 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) {
diff --git a/fs/sync.c b/fs/sync.c
index a576aa2e6b09..09f96a18dd93 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -108,7 +108,7 @@ SYSCALL_DEFINE0(sync)
108{ 108{
109 int nowait = 0, wait = 1; 109 int nowait = 0, wait = 1;
110 110
111 wakeup_flusher_threads(0, WB_REASON_SYNC); 111 wakeup_flusher_threads(WB_REASON_SYNC);
112 iterate_supers(sync_inodes_one_sb, NULL); 112 iterate_supers(sync_inodes_one_sb, NULL);
113 iterate_supers(sync_fs_one_sb, &nowait); 113 iterate_supers(sync_fs_one_sb, &nowait);
114 iterate_supers(sync_fs_one_sb, &wait); 114 iterate_supers(sync_fs_one_sb, &wait);