writeback: move nr_pages == 0 logic to one location
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Sep 2017 19:33:16 +0000 (13:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Sep 2017 19:52:50 +0000 (13:52 -0600)
commit0dd21092883c3e78bd272e5e96d52ec0519ac906
tree8b7a92ce3ccb65c9278924ab3d820b39e0383571
parente9f886532d4956ee498fd54899af6304f0671dcd
writeback: move nr_pages == 0 logic to one location

Now that we have no external callers of wb_start_writeback(), we
can shuffle the passing in of 'nr_pages'. Everybody passes in 0
at this point, so just kill the argument and move the dirty
count retrieval to that function.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Tested-by: Chris Mason <clm@fb.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/fs-writeback.c