mpage.h 991 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * include/linux/mpage.h
  3. *
  4. * Contains declarations related to preparing and submitting BIOS which contain
  5. * multiple pagecache pages.
  6. */
  7. /*
  8. * (And no, it doesn't do the #ifdef __MPAGE_H thing, and it doesn't do
  9. * nested includes. Get it right in the .c file).
  10. */
  11. #ifdef CONFIG_BLOCK
  12. struct mpage_data {
  13. struct bio *bio;
  14. sector_t last_block_in_bio;
  15. get_block_t *get_block;
  16. unsigned use_writepage;
  17. };
  18. struct writeback_control;
  19. struct bio *mpage_bio_submit(int rw, struct bio *bio);
  20. int mpage_readpages(struct address_space *mapping, struct list_head *pages,
  21. unsigned nr_pages, get_block_t get_block);
  22. int mpage_readpage(struct page *page, get_block_t get_block);
  23. int __mpage_writepage(struct page *page, struct writeback_control *wbc,
  24. void *data);
  25. int mpage_writepages(struct address_space *mapping,
  26. struct writeback_control *wbc, get_block_t get_block);
  27. int mpage_writepage(struct page *page, get_block_t *get_block,
  28. struct writeback_control *wbc);
  29. #endif