diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2018-06-07 20:08:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-07 20:34:37 -0400 |
commit | fa3015b7eed5da68a40c7667e8b3d5c20ef56e82 (patch) | |
tree | 7ce189bb86071da4599dbf6b4c60fa6738cf84ab /mm/huge_memory.c | |
parent | 66a6ffd2af42b0bafaecccbd7c1c30d386de21ab (diff) |
mm: use page->deferred_list
Now that we can represent the location of 'deferred_list' in C instead of
comments, make use of that ability.
Link: http://lkml.kernel.org/r/20180518194519.3820-9-willy@infradead.org
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r-- | mm/huge_memory.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index ac5591d8622c..ba8fdc0b6e7f 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -483,11 +483,8 @@ pmd_t maybe_pmd_mkwrite(pmd_t pmd, struct vm_area_struct *vma) | |||
483 | 483 | ||
484 | static inline struct list_head *page_deferred_list(struct page *page) | 484 | static inline struct list_head *page_deferred_list(struct page *page) |
485 | { | 485 | { |
486 | /* | 486 | /* ->lru in the tail pages is occupied by compound_head. */ |
487 | * ->lru in the tail pages is occupied by compound_head. | 487 | return &page[2].deferred_list; |
488 | * Let's use ->mapping + ->index in the second tail page as list_head. | ||
489 | */ | ||
490 | return (struct list_head *)&page[2].mapping; | ||
491 | } | 488 | } |
492 | 489 | ||
493 | void prep_transhuge_page(struct page *page) | 490 | void prep_transhuge_page(struct page *page) |