]> 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>
Thu, 29 Sep 2011 06:08:04 +0000 (16:08 +1000)
commit31034c6fbad74d6c5bb887cffc09ae993ac3adba
treed6de6ceed81d1da96dae35aee812616a8bf3d730
parentf98b7d706eff64b3f54afe71a4c78b5cfb43c5a5
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