Declare the structure that the writers use to access the functions in this
file.
Signed-off-by: Nigel Cunningham <[email protected]>
kernel/power/suspend_block_io.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/kernel/power/suspend_block_io.c b/kernel/power/suspend_block_io.c
index f93d985..9339826 100644
--- a/kernel/power/suspend_block_io.c
+++ b/kernel/power/suspend_block_io.c
@@ -1035,3 +1035,23 @@ static int write_header_chunk_finish(voi
-1, 0, test_debug_state(SUSPEND_HEADER)) ? -EIO : 0;
}
+struct suspend_bio_ops suspend_bio_ops = {
+ .bdev_page_io = suspend_bdev_page_io,
+ .check_io_stats = suspend_check_io_stats,
+ .reset_io_stats = suspend_reset_io_stats,
+ .finish_all_io = suspend_finish_all_io,
+ .prepare_readahead = suspend_prepare_readahead,
+ .cleanup_readahead = suspend_cleanup_readahead,
+ .readahead_pages = suspend_readahead_pages,
+ .readahead_ready = suspend_readahead_ready,
+ .forward_one_page = forward_one_page,
+ .set_extra_page_forward = set_extra_page_forward,
+ .set_devinfo = suspend_set_devinfo,
+ .read_chunk = suspend_bio_read_chunk,
+ .write_chunk = suspend_write_chunk,
+ .rw_init = suspend_rw_init,
+ .rw_cleanup = suspend_rw_cleanup,
+ .rw_header_chunk = suspend_rw_header_chunk,
+ .write_header_chunk_finish = write_header_chunk_finish,
+};
+
--
Nigel Cunningham nigel at suspend2 dot net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]