Commit 08852b6d authored by Minchan Kim's avatar Minchan Kim Committed by Jens Axboe

writeback: remove wb in get_next_work_item

83ba7b07 cleans up the writeback.
So we don't use wb any more in get_next_work_item.
Let's remove unnecessary argument.

CC: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMinchan Kim <minchan.kim@gmail.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 6965031d
...@@ -704,7 +704,7 @@ static long wb_writeback(struct bdi_writeback *wb, ...@@ -704,7 +704,7 @@ static long wb_writeback(struct bdi_writeback *wb,
* Return the next wb_writeback_work struct that hasn't been processed yet. * Return the next wb_writeback_work struct that hasn't been processed yet.
*/ */
static struct wb_writeback_work * static struct wb_writeback_work *
get_next_work_item(struct backing_dev_info *bdi, struct bdi_writeback *wb) get_next_work_item(struct backing_dev_info *bdi)
{ {
struct wb_writeback_work *work = NULL; struct wb_writeback_work *work = NULL;
...@@ -762,7 +762,7 @@ long wb_do_writeback(struct bdi_writeback *wb, int force_wait) ...@@ -762,7 +762,7 @@ long wb_do_writeback(struct bdi_writeback *wb, int force_wait)
struct wb_writeback_work *work; struct wb_writeback_work *work;
long wrote = 0; long wrote = 0;
while ((work = get_next_work_item(bdi, wb)) != NULL) { while ((work = get_next_work_item(bdi)) != NULL) {
/* /*
* Override sync mode, in case we must wait for completion * Override sync mode, in case we must wait for completion
* because this thread is exiting now. * because this thread is exiting now.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment