Files
linux-stable-mirror/include/linux
Hua Zhong e6333fd4dd [PATCH] fix can_share_swap_page() when !CONFIG_SWAP
can_share_swap_page() is used to check if the page has the last reference.
This avoids allocating a new page for COW if it's the last page.

However, if CONFIG_SWAP is not set, can_share_swap_page() is defined as 0,
thus always causes a copy for the last COW page.  The below simple patch
fixes it.

Signed-off-by: Hua Zhong <hzhong@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-05-15 11:20:56 -07:00
..
2006-05-02 17:24:59 +01:00
2006-05-01 06:10:04 -04:00
2006-04-27 13:08:56 -07:00
2006-04-29 18:33:15 -07:00
2006-04-19 09:13:53 -07:00
2006-05-04 06:55:12 +02:00
2006-05-01 06:09:56 -04:00