diff options
author | Christoph Hellwig <hch@lst.de> | 2015-05-19 03:23:23 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-05-19 11:19:59 -0400 |
commit | 343df3c79c62b644ce6ff5dff96c9e0be1ecb242 (patch) | |
tree | e9fda2a8f83de9c33a824551603e2cbfd883db53 /mm/page_io.c | |
parent | b2dbe0a60f1bcf4db5c701f1577b3135c3159eb5 (diff) |
suspend: simplify block I/O handling
Stop abusing struct page functionality and the swap end_io handler, and
instead add a modified version of the blk-lib.c bio_batch helpers.
Also move the block I/O code into swap.c as they are directly tied into
each other.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Ming Lin <mlin@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'mm/page_io.c')
-rw-r--r-- | mm/page_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_io.c b/mm/page_io.c index 6424869e275e..520baa4b04d7 100644 --- a/mm/page_io.c +++ b/mm/page_io.c | |||
@@ -69,7 +69,7 @@ void end_swap_bio_write(struct bio *bio, int err) | |||
69 | bio_put(bio); | 69 | bio_put(bio); |
70 | } | 70 | } |
71 | 71 | ||
72 | void end_swap_bio_read(struct bio *bio, int err) | 72 | static void end_swap_bio_read(struct bio *bio, int err) |
73 | { | 73 | { |
74 | const int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 74 | const int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
75 | struct page *page = bio->bi_io_vec[0].bv_page; | 75 | struct page *page = bio->bi_io_vec[0].bv_page; |