diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2010-04-27 20:12:49 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-27 20:12:49 +0200 |
commit | 42bd225c0ba7c95af39293d39a950c48e7e5cb23 (patch) | |
tree | 62d2016d3087c31dc10652d6a4f42a826c5bc6e3 /mm | |
parent | 6b4517a7913a09d3259bb1d21c9cb300f12294bd (diff) |
"laptop-mode: Make flushes per-device" fix
When CONFIG_BLOCK is not enabled:
mm/page-writeback.c:707: error: dereferencing pointer to incomplete type
mm/page-writeback.c:708: error: dereferencing pointer to incomplete type
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index d0f2b3765f8d..bdbac1502f9e 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -693,21 +693,6 @@ int dirty_writeback_centisecs_handler(ctl_table *table, int write, return 0; } -void laptop_mode_timer_fn(unsigned long data) -{ - struct request_queue *q = (struct request_queue *)data; - int nr_pages = global_page_state(NR_FILE_DIRTY) + - global_page_state(NR_UNSTABLE_NFS); - - /* - * We want to write everything out, not just down to the dirty - * threshold - */ - - if (bdi_has_dirty_io(&q->backing_dev_info)) - bdi_start_writeback(&q->backing_dev_info, NULL, nr_pages); -} - /* * We've spun up the disk and we're in laptop mode: schedule writeback * of all dirty data a few seconds from now. If the flush is already scheduled |