Commit 08852b6d6c40f387f2b75e199e2ca1df68970f4c

Authored by Minchan Kim
Committed by Jens Axboe
1 parent 6965031d33

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: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -704,7 +704,7 @@
704 704 * Return the next wb_writeback_work struct that hasn't been processed yet.
705 705 */
706 706 static struct wb_writeback_work *
707   -get_next_work_item(struct backing_dev_info *bdi, struct bdi_writeback *wb)
  707 +get_next_work_item(struct backing_dev_info *bdi)
708 708 {
709 709 struct wb_writeback_work *work = NULL;
710 710  
... ... @@ -762,7 +762,7 @@
762 762 struct wb_writeback_work *work;
763 763 long wrote = 0;
764 764  
765   - while ((work = get_next_work_item(bdi, wb)) != NULL) {
  765 + while ((work = get_next_work_item(bdi)) != NULL) {
766 766 /*
767 767 * Override sync mode, in case we must wait for completion
768 768 * because this thread is exiting now.