]> Git Repo - linux.git/commit - mm/swap.c
[PATCH] mm: never ClearPageLRU released pages
authorNick Piggin <[email protected]>
Wed, 22 Mar 2006 08:07:58 +0000 (00:07 -0800)
committerLinus Torvalds <[email protected]>
Wed, 22 Mar 2006 15:53:56 +0000 (07:53 -0800)
commit46453a6e194a8c55fe6cf3dc8e1c4f24e2abc013
treee407665e6c8cdf33814007750c49fdbea0a21e0e
parent2492ecc1a16b8ccf679d2999dca4f1b48aef07ee
[PATCH] mm: never ClearPageLRU released pages

If vmscan finds a zero refcount page on the lru list, never ClearPageLRU
it.  This means the release code need not hold ->lru_lock to stabilise
PageLRU, so that lock may be skipped entirely when releasing !PageLRU pages
(because we know PageLRU won't have been temporarily cleared by vmscan,
which was previously guaranteed by holding the lock to synchronise against
vmscan).

Signed-off-by: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/swap.c
mm/vmscan.c
This page took 0.051486 seconds and 4 git commands to generate.