diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:10 +0000 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:10 +0000 |
| commit | b5875be0451b92bdd99663c8305ae46bd6a7d90c (patch) | |
| tree | 68a6a5f79ac618c79ba3777c21faaea9aec2f0b4 /libdde-linux26/contrib/include/linux/mpage.h | |
| parent | ce6a36c7f7c88e7ca0fda816f9282237bb86829d (diff) | |
| parent | 7996a3d79d55b7f879dfd62e202bbfe2963718d3 (diff) | |
Merge branch 'upstream-merged'
Diffstat (limited to 'libdde-linux26/contrib/include/linux/mpage.h')
| -rw-r--r-- | libdde-linux26/contrib/include/linux/mpage.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libdde-linux26/contrib/include/linux/mpage.h b/libdde-linux26/contrib/include/linux/mpage.h new file mode 100644 index 00000000..5c42821d --- /dev/null +++ b/libdde-linux26/contrib/include/linux/mpage.h @@ -0,0 +1,34 @@ +/* + * include/linux/mpage.h + * + * Contains declarations related to preparing and submitting BIOS which contain + * multiple pagecache pages. + */ + +/* + * (And no, it doesn't do the #ifdef __MPAGE_H thing, and it doesn't do + * nested includes. Get it right in the .c file). + */ +#ifdef CONFIG_BLOCK + +struct mpage_data { + struct bio *bio; + sector_t last_block_in_bio; + get_block_t *get_block; + unsigned use_writepage; +}; + +struct writeback_control; + +struct bio *mpage_bio_submit(int rw, struct bio *bio); +int mpage_readpages(struct address_space *mapping, struct list_head *pages, + unsigned nr_pages, get_block_t get_block); +int mpage_readpage(struct page *page, get_block_t get_block); +int __mpage_writepage(struct page *page, struct writeback_control *wbc, + void *data); +int mpage_writepages(struct address_space *mapping, + struct writeback_control *wbc, get_block_t get_block); +int mpage_writepage(struct page *page, get_block_t *get_block, + struct writeback_control *wbc); + +#endif |
