summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHua Zhong <hzhong@gmail.com>2006-05-15 18:44:22 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-05-15 20:20:56 +0200
commite6333fd4ddf7a583480017f535b9ea53c116ab81 (patch)
treedf1aeae28ce51103a0c9eda8f7d40e463297b2ef /arch
parent[PATCH] v9fs: signal handling fixes (diff)
downloadlinux-e6333fd4ddf7a583480017f535b9ea53c116ab81.tar.xz
linux-e6333fd4ddf7a583480017f535b9ea53c116ab81.zip
[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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions