Skip to contentSkip to conversation

mm-page_owner-dont-define-fields-on-struct-page_ext-by-hard-coding.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 10, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/page_owner: don't define fields on struct page_ext by hard-coding
has been removed from the -mm tree. Its filename was
mm-page_owner-dont-define-fields-on-struct-page_ext-by-hard-coding.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Joonsoo Kim <[email protected]>
Subject: mm/page_owner: don't define fields on struct page_ext by hard-coding

There is a memory waste problem if we define field on struct page_ext by hard-coding. Entry size of struct page_ext includes the size of those fields even if it is disabled at runtime. Now, extra memory request at runtime is possible so page_owner don't need to define it's own fields by hard-coding.

This patch removes hard-coded define and uses extra memory for storing page_owner information in page_owner. Most of code are just mechanical changes.

---

 include/linux/page_ext.h |    6 --
 mm/page_owner.c          |   83 +++++++++++++++++++++++++------------
 2 files changed, 58 insertions(+), 31 deletions(-)
include/linux/page_ext.h renamed from include/linux/page_ext.h~mm-page_owner-dont-define-fields-on-struct-page_ext-by-hard-coding +0 -6
diff -puN include/linux/page_ext.h~mm-page_owner-dont-define-fields-on-struct-page_ext-by-hard-coding include/linux/page_ext.h
@@ -44,12 +44,6 @@ enum page_ext_flags {
  */
 struct page_ext {
 	unsigned long flags;
-#ifdef CONFIG_PAGE_OWNER
-	unsigned int order;
-	gfp_t gfp_mask;
-	int last_migrate_reason;
-	depot_stack_handle_t handle;
-#endif
 };
 
 extern void pgdat_page_ext_init(struct pglist_data *pgdat);
mm/page_owner.c renamed from mm/page_owner.c~mm-page_owner-dont-define-fields-on-struct-page_ext-by-hard-coding +58 -25

231 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

mm-slab-fix-kmemcg-cache-creation-delayed-issue.patch