From: Randy Dunlap on 27 Apr 2010 12:30 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 --- ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Andrew Morton on 27 Apr 2010 14:10 On Tue, 27 Apr 2010 09:19:30 -0700 (PDT) Randy Dunlap <randy.dunlap(a)oracle.com> wrote: > 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 > Subject: "laptop-mode: Make flushes per-device" fix From: Andrew Morton <akpm(a)linux-foundation.org> 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(a)oracle.com> Cc: Matthew Garrett <mjg(a)redhat.com> Cc: Jens Axboe <jens.axboe(a)oracle.com> Signed-off-by: Andrew Morton <akpm(a)linux-foundation.org> --- block/blk-core.c | 15 +++++++++++++++ include/linux/writeback.h | 1 - mm/page-writeback.c | 15 --------------- 3 files changed, 15 insertions(+), 16 deletions(-) diff -puN block/blk-core.c~laptop-mode-make-flushes-per-device-fix block/blk-core.c --- a/block/blk-core.c~laptop-mode-make-flushes-per-device-fix +++ a/block/blk-core.c @@ -488,6 +488,21 @@ struct request_queue *blk_alloc_queue(gf } EXPORT_SYMBOL(blk_alloc_queue); +static 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); +} + struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id) { struct request_queue *q; diff -puN mm/page-writeback.c~laptop-mode-make-flushes-per-device-fix mm/page-writeback.c --- a/mm/page-writeback.c~laptop-mode-make-flushes-per-device-fix +++ a/mm/page-writeback.c @@ -693,21 +693,6 @@ int dirty_writeback_centisecs_handler(ct 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 diff -puN include/linux/writeback.h~laptop-mode-make-flushes-per-device-fix include/linux/writeback.h --- a/include/linux/writeback.h~laptop-mode-make-flushes-per-device-fix +++ a/include/linux/writeback.h @@ -99,7 +99,6 @@ static inline void inode_sync_wait(struc void laptop_io_completion(struct backing_dev_info *info); void laptop_sync_completion(void); void laptop_mode_sync(struct work_struct *work); -void laptop_mode_timer_fn(unsigned long data); void throttle_vm_writeout(gfp_t gfp_mask); /* These are exported to sysctl. */ _ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jens Axboe on 27 Apr 2010 14:20 On Tue, Apr 27 2010, Andrew Morton wrote: > On Tue, 27 Apr 2010 09:19:30 -0700 (PDT) > Randy Dunlap <randy.dunlap(a)oracle.com> wrote: > > > 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 > > > > Subject: "laptop-mode: Make flushes per-device" fix > From: Andrew Morton <akpm(a)linux-foundation.org> > > 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 Thanks Andrew, I've added this to the .35 branch. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: linux-next: April 27 (iscsi_ibft) Next: threaded interrupt handler |