]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: use atomic-long for shrinker batching
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Tue, 8 Nov 2011 00:20:12 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 9 Nov 2011 02:10:16 +0000 (13:10 +1100)
commit4431fd0602054956e85c6a5320fd471df88c4cb6
tree9dbe91bece6b58ac9938f96215bc50b37ae03982
parent150d9a5e8e6cda7257a6dae04907c423031dd369
vmscan: use atomic-long for shrinker batching

Use atomic-long operations instead of looping around cmpxchg().

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/shrinker.h
mm/vmscan.c