lkml.org 
[lkml]   [2006]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[Suspend2][ 31/32] [Suspend2] Suspend block io ops.
Date
Declare the structure that the writers use to access the functions in this
file.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-27 01:14    [W:0.124 / U:5.064 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site