]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc8199237a3bf521da5cd4b96cce2410e6d4b383
treef341ed9625f86002a27ec73d66750ada056083bc
parent5c231927da5d0b901b77d9e38931f5e762fa65a4
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