diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2009-11-03 10:59:10 +0100 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2009-11-03 10:59:10 +0100 |
commit | 59131d8e0ae91f2e94909e0795923c4c7ee7eb8c (patch) | |
tree | 118e958961f1a5c2b64783ef239540397c176831 /include/linux/backing-dev.h | |
parent | 012abeea669ea49636cf952d13298bb68654146a (diff) | |
parent | 4f570f995f68ef77aae7e5a441222f59232f2d0e (diff) |
Merge branch 'for-2.6.33' of git://git.kernel.dk/linux-2.6-block into for-2.6.33
Diffstat (limited to 'include/linux/backing-dev.h')
-rw-r--r-- | include/linux/backing-dev.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index b449e738533..fcbc26af00e 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -331,4 +331,17 @@ static inline int bdi_sched_wait(void *word) return 0; } +static inline void blk_run_backing_dev(struct backing_dev_info *bdi, + struct page *page) +{ + if (bdi && bdi->unplug_io_fn) + bdi->unplug_io_fn(bdi, page); +} + +static inline void blk_run_address_space(struct address_space *mapping) +{ + if (mapping) + blk_run_backing_dev(mapping->backing_dev_info, NULL); +} + #endif /* _LINUX_BACKING_DEV_H */ |