]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: add a new function (needed for swap suspend)
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 6 Jan 2006 08:16:37 +0000 (00:16 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:43 +0000 (08:33 -0800)
commitabe3d61742c10082c7899ea725308f85880fe7bc
tree6c034471da9b2aac77b9810af640bb7a515cb299
parenta9eb46dafcf146a28cf80e426ca4ea7edf721251
[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>
include/linux/swap.h
mm/swapfile.c