aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2013-11-21 17:32:11 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-21 19:42:28 -0500
commit7aa555bf26763b86332c7a3689701c999834b87a (patch)
treed1b9ba55f3302ca175282bbc1c20bbde7d494977 /include
parentf92ca80b28a04c68c9de737383645d7effe97af0 (diff)
mm: place page->pmd_huge_pte to right union
I don't know what went wrong, mis-merge or something, but ->pmd_huge_pte placed in wrong union within struct page. In original patch[1] it's placed to union with ->lru and ->slab, but in commit e009bb30c8df ("mm: implement split page table lock for PMD level") it's in union with ->index and ->freelist. That union seems also unused for pages with table tables and safe to re-use, but it's not what I've tested. Let's move it to original place. It fixes indentation at least. :) [1] https://lkml.org/lkml/2013/10/7/288 Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm_types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 10f5a7272b80..011eb85d7b0f 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -65,9 +65,6 @@ struct page {
65 * this page is only used to 65 * this page is only used to
66 * free other pages. 66 * free other pages.
67 */ 67 */
68#if defined(CONFIG_TRANSPARENT_HUGEPAGE) && USE_SPLIT_PMD_PTLOCKS
69 pgtable_t pmd_huge_pte; /* protected by page->ptl */
70#endif
71 }; 68 };
72 69
73 union { 70 union {
@@ -135,6 +132,9 @@ struct page {
135 132
136 struct list_head list; /* slobs list of pages */ 133 struct list_head list; /* slobs list of pages */
137 struct slab *slab_page; /* slab fields */ 134 struct slab *slab_page; /* slab fields */
135#if defined(CONFIG_TRANSPARENT_HUGEPAGE) && USE_SPLIT_PMD_PTLOCKS
136 pgtable_t pmd_huge_pte; /* protected by page->ptl */
137#endif
138 }; 138 };
139 139
140 /* Remainder is not double word aligned */ 140 /* Remainder is not double word aligned */