From: Jens Axboe Date: Fri, 21 May 2010 18:01:54 +0000 (+0200) Subject: writeback: fix mixed up arguments to bdi_start_writeback() X-Git-Tag: v2.6.35-rc1~442^2~9 X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=commitdiff_plain;h=df96e96f76571c30d903829a7b2ab2b421028790 writeback: fix mixed up arguments to bdi_start_writeback() The laptop mode timer had the nr_pages and sb_locked arguments mixed up. Signed-off-by: Jens Axboe --- diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 9886424..b289310 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -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); } /*