blob: f4f5e90a6844151597506cfc81d87ec0846fe71d [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * include/linux/mpage.h
4 *
5 * Contains declarations related to preparing and submitting BIOS which contain
6 * multiple pagecache pages.
7 */
8
9/*
10 * (And no, it doesn't do the #ifdef __MPAGE_H thing, and it doesn't do
11 * nested includes. Get it right in the .c file).
12 */
13#ifdef CONFIG_BLOCK
14
15struct writeback_control;
Olivier Deprez157378f2022-04-04 15:47:50 +020016struct readahead_control;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000017
Olivier Deprez157378f2022-04-04 15:47:50 +020018void mpage_readahead(struct readahead_control *, get_block_t get_block);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000019int mpage_readpage(struct page *page, get_block_t get_block);
20int mpage_writepages(struct address_space *mapping,
21 struct writeback_control *wbc, get_block_t get_block);
22int mpage_writepage(struct page *page, get_block_t *get_block,
23 struct writeback_control *wbc);
24
25#endif