vmscan: use atomic-long for shrinker batching
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 8 Dec 2011 22:33:54 +0000 (14:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Dec 2011 15:50:27 +0000 (07:50 -0800)
commit83aeeada7c69f35e5100b27ec354335597a7a488
tree44644e68f303368feba7c8ba3e0e0991d6238ada
parent635697c663f38106063d5659f0cf2e45afcd4bb5
vmscan: use atomic-long for shrinker batching

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

[akpm@linux-foundation.org: massage atomic.h inclusions]
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/fs.h
include/linux/mm.h
include/linux/shrinker.h
mm/vmscan.c