diff options
author | Jiri Slaby <jslaby@suse.cz> | 2010-05-01 17:52:34 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-05-10 17:08:18 -0400 |
commit | 8a0d613fa12e1b7f7f71ca88ed7dc2a3de95121a (patch) | |
tree | 1012509bb830002ba7c41562c26ad211631a26c0 /kernel/power/power.h | |
parent | d3c1b24c50e8b2bbc840322caf26c7eada594d21 (diff) |
PM / Hibernate: Separate block_io
Move block I/O operations to a separate file. It is because it will
be used later not only by the swap writer.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index b1e207dde1c2..006270fe382d 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -142,6 +142,15 @@ extern int swsusp_read(unsigned int *flags_p); | |||
142 | extern int swsusp_write(unsigned int flags); | 142 | extern int swsusp_write(unsigned int flags); |
143 | extern void swsusp_close(fmode_t); | 143 | extern void swsusp_close(fmode_t); |
144 | 144 | ||
145 | /* kernel/power/block_io.c */ | ||
146 | extern struct block_device *hib_resume_bdev; | ||
147 | |||
148 | extern int hib_bio_read_page(pgoff_t page_off, void *addr, | ||
149 | struct bio **bio_chain); | ||
150 | extern int hib_bio_write_page(pgoff_t page_off, void *addr, | ||
151 | struct bio **bio_chain); | ||
152 | extern int hib_wait_on_bio_chain(struct bio **bio_chain); | ||
153 | |||
145 | struct timeval; | 154 | struct timeval; |
146 | /* kernel/power/swsusp.c */ | 155 | /* kernel/power/swsusp.c */ |
147 | extern void swsusp_show_speed(struct timeval *, struct timeval *, | 156 | extern void swsusp_show_speed(struct timeval *, struct timeval *, |