]> 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>
Fri, 30 Sep 2011 04:53:23 +0000 (14:53 +1000)
commit8cfa250f44e907c9f3ddc1f6baad31d01dc58ff1
tree91ce6a9caf6c078fd1c90a815cd5cfcf8bf5fd2b
parent2f2bbf0f66a335eae6355ca8d01877e5860badc0
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