diff options
Diffstat (limited to 'fs/mpage.c')
| -rw-r--r-- | fs/mpage.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/mpage.c b/fs/mpage.c index 235e4d3873a8..dbcc7af76a15 100644 --- a/fs/mpage.c +++ b/fs/mpage.c | |||
| @@ -82,7 +82,7 @@ static void mpage_end_io_write(struct bio *bio, int err) | |||
| 82 | bio_put(bio); | 82 | bio_put(bio); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | static struct bio *mpage_bio_submit(int rw, struct bio *bio) | 85 | struct bio *mpage_bio_submit(int rw, struct bio *bio) |
| 86 | { | 86 | { |
| 87 | bio->bi_end_io = mpage_end_io_read; | 87 | bio->bi_end_io = mpage_end_io_read; |
| 88 | if (rw == WRITE) | 88 | if (rw == WRITE) |
| @@ -90,6 +90,7 @@ static struct bio *mpage_bio_submit(int rw, struct bio *bio) | |||
| 90 | submit_bio(rw, bio); | 90 | submit_bio(rw, bio); |
| 91 | return NULL; | 91 | return NULL; |
| 92 | } | 92 | } |
| 93 | EXPORT_SYMBOL(mpage_bio_submit); | ||
| 93 | 94 | ||
| 94 | static struct bio * | 95 | static struct bio * |
| 95 | mpage_alloc(struct block_device *bdev, | 96 | mpage_alloc(struct block_device *bdev, |
| @@ -435,15 +436,9 @@ EXPORT_SYMBOL(mpage_readpage); | |||
| 435 | * written, so it can intelligently allocate a suitably-sized BIO. For now, | 436 | * written, so it can intelligently allocate a suitably-sized BIO. For now, |
| 436 | * just allocate full-size (16-page) BIOs. | 437 | * just allocate full-size (16-page) BIOs. |
| 437 | */ | 438 | */ |
| 438 | struct mpage_data { | ||
| 439 | struct bio *bio; | ||
| 440 | sector_t last_block_in_bio; | ||
| 441 | get_block_t *get_block; | ||
| 442 | unsigned use_writepage; | ||
| 443 | }; | ||
| 444 | 439 | ||
| 445 | static int __mpage_writepage(struct page *page, struct writeback_control *wbc, | 440 | int __mpage_writepage(struct page *page, struct writeback_control *wbc, |
| 446 | void *data) | 441 | void *data) |
| 447 | { | 442 | { |
| 448 | struct mpage_data *mpd = data; | 443 | struct mpage_data *mpd = data; |
| 449 | struct bio *bio = mpd->bio; | 444 | struct bio *bio = mpd->bio; |
| @@ -651,6 +646,7 @@ out: | |||
| 651 | mpd->bio = bio; | 646 | mpd->bio = bio; |
| 652 | return ret; | 647 | return ret; |
| 653 | } | 648 | } |
| 649 | EXPORT_SYMBOL(__mpage_writepage); | ||
| 654 | 650 | ||
| 655 | /** | 651 | /** |
| 656 | * mpage_writepages - walk the list of dirty pages of the given address space & writepage() all of them | 652 | * mpage_writepages - walk the list of dirty pages of the given address space & writepage() all of them |
