diff options
author | Konstantin Khlebnikov <khlebnikov@openvz.org> | 2011-12-08 14:33:54 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-09 07:50:27 -0800 |
commit | 83aeeada7c69f35e5100b27ec354335597a7a488 (patch) | |
tree | 44644e68f303368feba7c8ba3e0e0991d6238ada /include/linux/mm.h | |
parent | 635697c663f38106063d5659f0cf2e45afcd4bb5 (diff) | |
download | op-kernel-dev-83aeeada7c69f35e5100b27ec354335597a7a488.zip op-kernel-dev-83aeeada7c69f35e5100b27ec354335597a7a488.tar.gz |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 3dc3a8c..4baadd1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -10,6 +10,7 @@ #include <linux/mmzone.h> #include <linux/rbtree.h> #include <linux/prio_tree.h> +#include <linux/atomic.h> #include <linux/debug_locks.h> #include <linux/mm_types.h> #include <linux/range.h> |