]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: use atomic-long for shrinker batching
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 16 Nov 2011 23:40:58 +0000 (10:40 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 29 Nov 2011 03:37:09 +0000 (14:37 +1100)
commitde2780c6cde35bdc63e0a06466f2774f31650b3f
tree0bc3d01347054dac160e06faff3d72d4481e9603
parent288b6cf64ccfc38b6840cabadb473e20cfb6824d
vmscan: use atomic-long for shrinker batching

Use atomic-long operations instead of looping around cmpxchg().

[akpm@linux-foundation.org: massage atomic.h inclusions]
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/fs.h
include/linux/mm.h
include/linux/shrinker.h
mm/vmscan.c