suspend: simplify block I/O handling
authorChristoph Hellwig <hch@lst.de>
Tue, 19 May 2015 07:23:23 +0000 (09:23 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 19 May 2015 15:19:59 +0000 (09:19 -0600)
commit343df3c79c62b644ce6ff5dff96c9e0be1ecb242
treee9fda2a8f83de9c33a824551603e2cbfd883db53
parentb2dbe0a60f1bcf4db5c701f1577b3135c3159eb5
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>
include/linux/swap.h
kernel/power/Makefile
kernel/power/block_io.c [deleted file]
kernel/power/power.h
kernel/power/swap.c
mm/page_io.c