]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: use atomic-long for shrinker batching
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Mon, 24 Oct 2011 14:54:10 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 7 Nov 2011 02:40:26 +0000 (13:40 +1100)
commit6c503e93da04fb3b5b860df82061ebd851fa0a54
tree39bfa7f2f784b4467a4c2208058d4604257cf149
parent38aab51b6f66edc5c162df69a1d54683ced6414b
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