diff options
author | Christoph Hellwig <hch@lst.de> | 2015-05-19 09:23:23 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-05-19 09:19:59 -0600 |
commit | 343df3c79c62b644ce6ff5dff96c9e0be1ecb242 (patch) | |
tree | e9fda2a8f83de9c33a824551603e2cbfd883db53 /mm/page_io.c | |
parent | b2dbe0a60f1bcf4db5c701f1577b3135c3159eb5 (diff) | |
download | blackbird-op-linux-343df3c79c62b644ce6ff5dff96c9e0be1ecb242.tar.gz blackbird-op-linux-343df3c79c62b644ce6ff5dff96c9e0be1ecb242.zip |
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) bio_put(bio); } -void end_swap_bio_read(struct bio *bio, int err) +static void end_swap_bio_read(struct bio *bio, int err) { const int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); struct page *page = bio->bi_io_vec[0].bv_page; |