]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: use atomic-long for shrinker batching
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 30 Nov 2011 04:02:59 +0000 (15:02 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:30 +0000 (15:13 +1100)
commita9e74a66a0c311adae3c21258d9c5a23a395ea14
treeb08cc94960b9d9bda5e368f14acda58e7b89bd1f
parent00af2170eb47222fefa73185352ae02f26a44cc3
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