diff options
author | Andrew Morton <akpm@osdl.org> | 2004-05-14 05:43:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-14 05:43:07 -0700 |
commit | e059d5daf158b1bde61883ee5a091cd4875864a9 (patch) | |
tree | b81340cab05c5405a489115bd442856fdaad7e28 /mm | |
parent | 485ba3c3b6da6ca02daee0f961fe70beaebd32b3 (diff) | |
download | history-e059d5daf158b1bde61883ee5a091cd4875864a9.tar.gz |
[PATCH] Add blk_run_page()
From: Andrea Arcangeli <andrea@suse.de>
From: Jens Axboe
Add blk_run_page() API. This is so that we can pass the target page all the
way down to (for example) the swap unplug function. So swap can work out
which blockdevs back this particular page.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/readahead.c | 2 | ||||
-rw-r--r-- | mm/swapfile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index 71bf2462d09725..5d91c6bd564cba 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -15,7 +15,7 @@ #include <linux/backing-dev.h> #include <linux/pagevec.h> -void default_unplug_io_fn(struct backing_dev_info *bdi) +void default_unplug_io_fn(struct backing_dev_info *bdi, struct page *page) { } EXPORT_SYMBOL(default_unplug_io_fn); diff --git a/mm/swapfile.c b/mm/swapfile.c index 69b145555402c5..dfcfc43d51ced7 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -100,7 +100,7 @@ void swap_unplug_io_fn(struct backing_dev_info *unused_bdi) if (bdev == NULL) break; bdi = bdev->bd_inode->i_mapping->backing_dev_info; - (*bdi->unplug_io_fn)(bdi); + bdi->unplug_io_fn(bdi, page); } up(&swap_bdevs_sem); } |