]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/linux/mm_types.h
nommu: fix build breakage
[linux-2.6.git] / include / linux / mm_types.h
index e1ca64be66786f459d12a432288f1a1e226d01d6..b8bb9a6a1f37b71cae90c33ff84e75d2d780226a 100644 (file)
@@ -163,7 +163,8 @@ struct vm_area_struct {
         * can only be in the i_mmap tree.  An anonymous MAP_PRIVATE, stack
         * or brk vma (with NULL file) can only be in an anon_vma list.
         */
-       struct list_head anon_vma_node; /* Serialized by anon_vma->lock */
+       struct list_head anon_vma_chain; /* Serialized by mmap_sem &
+                                         * page_table_lock */
        struct anon_vma *anon_vma;      /* Serialized by page_table_lock */
 
        /* Function pointers to deal with this struct. */
@@ -198,13 +199,20 @@ struct core_state {
 enum {
        MM_FILEPAGES,
        MM_ANONPAGES,
+       MM_SWAPENTS,
        NR_MM_COUNTERS
 };
 
-#if USE_SPLIT_PTLOCKS
+#if USE_SPLIT_PTLOCKS && defined(CONFIG_MMU)
+#define SPLIT_RSS_COUNTING
 struct mm_rss_stat {
        atomic_long_t count[NR_MM_COUNTERS];
 };
+/* per-thread cached information, */
+struct task_rss_stat {
+       int events;     /* for synchronization threshold */
+       int count[NR_MM_COUNTERS];
+};
 #else  /* !USE_SPLIT_PTLOCKS */
 struct mm_rss_stat {
        unsigned long count[NR_MM_COUNTERS];