Skip to content

Commit

Permalink
writeback: fix mixed up arguments to bdi_start_writeback()
Browse files Browse the repository at this point in the history
The laptop mode timer had the nr_pages and sb_locked arguments
mixed up.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed May 21, 2010
1 parent c2c4986 commit df96e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit df96e96

Please sign in to comment.