]> git.karo-electronics.de Git - mv-sheeva.git/commit
thp: ksm: free swap when swapcache page is replaced
authorHugh Dickins <hughd@google.com>
Thu, 13 Jan 2011 23:46:28 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:38 +0000 (17:32 -0800)
commitae52a2adb5afa5ac5ec5fb5c7b24777f84b6c926
treefb02d8fb1699c85cc278e2333ce25916835bf341
parent240c879f20a605346705be24253bc9fc6fa8a106
thp: ksm: free swap when swapcache page is replaced

When a swapcache page is replaced by a ksm page, it's best to free that
swap immediately.

Reported-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/ksm.c