]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: use atomic-long for shrinker batching
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 28 Sep 2011 00:50:10 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:38:32 +0000 (18:38 +1100)
commitd2341419ba49051d2730425f1a633efd40d1264f
tree88a25b2b6ba2ed46bd285f8fb8ed51c3bdd2e26a
parent99b12b065b84b6919e910982dbe335c924e0235d
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 <>
include/linux/shrinker.h
mm/vmscan.c