]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/mm_types.h
mm: introduce wrappers to access mm->nr_ptes
[mirror_ubuntu-bionic-kernel.git] / include / linux / mm_types.h
index c85f11dafd56064c5c77a4e39cd4ad7a74f65755..e42048020664dab052298170d161a9108a8ef95a 100644 (file)
@@ -48,8 +48,10 @@ struct page {
                                                 * inode address_space, or NULL.
                                                 * If page mapped as anonymous
                                                 * memory, low bit is set, and
-                                                * it points to anon_vma object:
-                                                * see PAGE_MAPPING_ANON below.
+                                                * it points to anon_vma object
+                                                * or KSM private structure. See
+                                                * PAGE_MAPPING_ANON and
+                                                * PAGE_MAPPING_KSM.
                                                 */
                void *s_mem;                    /* slab first object */
                atomic_t compound_mapcount;     /* first tail page */
@@ -399,9 +401,14 @@ struct mm_struct {
         */
        atomic_t mm_count;
 
+#ifdef CONFIG_MMU
        atomic_long_t nr_ptes;                  /* PTE page table pages */
+#endif
 #if CONFIG_PGTABLE_LEVELS > 2
        atomic_long_t nr_pmds;                  /* PMD page table pages */
+#endif
+#if CONFIG_PGTABLE_LEVELS > 3
+       atomic_long_t nr_puds;                  /* PUD page table pages */
 #endif
        int map_count;                          /* number of VMAs */