aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorHua Zhong <[email protected]>2006-05-15 09:44:22 -0700
committerLinus Torvalds <[email protected]>2006-05-15 11:20:56 -0700
commite6333fd4ddf7a583480017f535b9ea53c116ab81 (patch)
treedf1aeae28ce51103a0c9eda8f7d40e463297b2ef /scripts/patch-kernel
parent41e5a6ac80c600e1f8bda0a4871f0b797e097d78 (diff)
[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 <[email protected]> Cc: David Howells <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions