OSDN Git Service

writeback: move nr_pages == 0 logic to one location
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Sep 2017 17:31:22 +0000 (11:31 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 14:38:17 +0000 (08:38 -0600)
commite8e8a0c6c9bfc0b320671166dd795f413f636773
treef341ed9625f86002a27ec73d66750ada056083bc
parent9dfb176fae57a1dea68531fd25e867037e4d9bac
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