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 /include/linux/swap.h | |
parent | b2dbe0a60f1bcf4db5c701f1577b3135c3159eb5 (diff) | |
download | op-kernel-dev-343df3c79c62b644ce6ff5dff96c9e0be1ecb242.zip op-kernel-dev-343df3c79c62b644ce6ff5dff96c9e0be1ecb242.tar.gz |
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 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index cee108c..3887472 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -377,7 +377,6 @@ extern void end_swap_bio_write(struct bio *bio, int err); extern int __swap_writepage(struct page *page, struct writeback_control *wbc, void (*end_write_func)(struct bio *, int)); extern int swap_set_page_dirty(struct page *page); -extern void end_swap_bio_read(struct bio *bio, int err); int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, unsigned long nr_pages, sector_t start_block); |