diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2006-01-06 03:16:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:43 -0500 |
commit | 3a291a20bd6fcfafb2109031f0760a0d3e92ecd7 (patch) | |
tree | 6c034471da9b2aac77b9810af640bb7a515cb299 /include | |
parent | ca0aec0f7a94bf9f07fefa8bfd23282d4e8ceb8a (diff) |
[PATCH] mm: add a new function (needed for swap suspend)
This adds the function get_swap_page_of_type() allowing us to specify an index
in swap_info[] and select a swap_info_struct structure to be used for
allocating a swap page.
This function (or another one of similar functionality) will be necessary for
implementing the image-writing part of swsusp in the user space. It can also
be used for simplifying the current in-kernel implementation of the
image-writing part of swsusp.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/swap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index bd6641784107..556617bcf7ac 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -209,6 +209,7 @@ extern unsigned int nr_swapfiles; | |||
209 | extern struct swap_info_struct swap_info[]; | 209 | extern struct swap_info_struct swap_info[]; |
210 | extern void si_swapinfo(struct sysinfo *); | 210 | extern void si_swapinfo(struct sysinfo *); |
211 | extern swp_entry_t get_swap_page(void); | 211 | extern swp_entry_t get_swap_page(void); |
212 | extern swp_entry_t get_swap_page_of_type(int type); | ||
212 | extern int swap_duplicate(swp_entry_t); | 213 | extern int swap_duplicate(swp_entry_t); |
213 | extern int valid_swaphandles(swp_entry_t, unsigned long *); | 214 | extern int valid_swaphandles(swp_entry_t, unsigned long *); |
214 | extern void swap_free(swp_entry_t); | 215 | extern void swap_free(swp_entry_t); |