]> Git Repo - linux.git/commit - mm/swapfile.c
[PATCH] swsusp: use block device offsets to identify swap locations
authorRafael J. Wysocki <[email protected]>
Thu, 7 Dec 2006 04:34:10 +0000 (20:34 -0800)
committerLinus Torvalds <[email protected]>
Thu, 7 Dec 2006 16:39:27 +0000 (08:39 -0800)
commit3aef83e0ef1ffb8ea3bea97be46821a45c952173
treef73878eb2ecce804c9eea6fbb13603907b3674b4
parent3fc6b34f4803b959c1e30c15247e2180cd529115
[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 <[email protected]>
Cc: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/swap.h
kernel/power/power.h
kernel/power/swap.c
kernel/power/swsusp.c
kernel/power/user.c
mm/page_io.c
mm/swapfile.c
This page took 0.05842 seconds and 4 git commands to generate.