]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: use atomic-long for shrinker batching
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 5 Oct 2011 00:42:57 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:05 +0000 (17:32 +1100)
commit372212ab9856b10afbf39ca4bd4a2493c32155bb
tree71172b70c7728eec3257127479526f7cd82e5234
parenta564e468265bddc001cfdd969077a79092241f24
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