]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/page-writeback.c
writeback: fix problem with !CONFIG_BLOCK compilation
[net-next-2.6.git] / mm / page-writeback.c
index 0d7bbe859550786970845fc55f7700c385386539..9886424e18649cfd054fb8097b0c44db9a380c8c 100644 (file)
@@ -694,6 +694,7 @@ int dirty_writeback_centisecs_handler(ctl_table *table, int write,
        return 0;
 }
 
+#ifdef CONFIG_BLOCK
 void laptop_mode_timer_fn(unsigned long data)
 {
        struct request_queue *q = (struct request_queue *)data;
@@ -735,6 +736,7 @@ void laptop_sync_completion(void)
 
        rcu_read_unlock();
 }
+#endif
 
 /*
  * If ratelimit_pages is too high then we can get into dirty-data overload