diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2006-12-06 23:34:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:27 -0500 |
commit | 3aef83e0ef1ffb8ea3bea97be46821a45c952173 (patch) | |
tree | f73878eb2ecce804c9eea6fbb13603907b3674b4 /kernel/power/power.h | |
parent | 3fc6b34f4803b959c1e30c15247e2180cd529115 (diff) |
[PATCH] swsusp: use block device offsets to identify swap locations
Make swsusp use block device offsets instead of swap offsets to identify swap
locations and make it use the same code paths for writing as well as for
reading data.
This allows us to use the same code for handling swap files and swap
partitions and to simplify the code, eg. by dropping rw_swap_page_sync().
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 87ecb1856ee8..210ebba26020 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -146,7 +146,7 @@ struct bitmap_page { | |||
146 | 146 | ||
147 | extern void free_bitmap(struct bitmap_page *bitmap); | 147 | extern void free_bitmap(struct bitmap_page *bitmap); |
148 | extern struct bitmap_page *alloc_bitmap(unsigned int nr_bits); | 148 | extern struct bitmap_page *alloc_bitmap(unsigned int nr_bits); |
149 | extern unsigned long alloc_swap_page(int swap, struct bitmap_page *bitmap); | 149 | extern sector_t alloc_swapdev_block(int swap, struct bitmap_page *bitmap); |
150 | extern void free_all_swap_pages(int swap, struct bitmap_page *bitmap); | 150 | extern void free_all_swap_pages(int swap, struct bitmap_page *bitmap); |
151 | 151 | ||
152 | extern int swsusp_check(void); | 152 | extern int swsusp_check(void); |