writeback: fix mixed up arguments to bdi_start_writeback()
authorJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:01:54 +0000 (20:01 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:01:54 +0000 (20:01 +0200)
The laptop mode timer had the nr_pages and sb_locked arguments
mixed up.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
mm/page-writeback.c

index 9886424e18649cfd054fb8097b0c44db9a380c8c..b289310e2c899ba472ea1f7a92a01b908f549f18 100644 (file)
@@ -707,7 +707,7 @@ void laptop_mode_timer_fn(unsigned long data)
         */
 
        if (bdi_has_dirty_io(&q->backing_dev_info))
-               bdi_start_writeback(&q->backing_dev_info, NULL, 0, nr_pages);
+               bdi_start_writeback(&q->backing_dev_info, NULL, nr_pages, 0);
 }
 
 /*