Skip to contentSkip to conversation

mm-introduce-offset_in_thp.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 18, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: introduce offset_in_thp
has been removed from the -mm tree. Its filename was
mm-introduce-offset_in_thp.patch

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

------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: mm: introduce offset_in_thp

Mirroring offset_in_page(), this gives you the offset within this particular page, no matter what size page it is. It optimises down to offset_in_page() if CONFIG_TRANSPARENT_HUGEPAGE is not set.

---

 include/linux/mm.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/mm.h renamed from include/linux/mm.h~mm-introduce-offset_in_thp +1 -0
@@ -1594,6 +1594,7 @@ static inline void clear_page_pfmemalloc
 extern void pagefault_out_of_memory(void);
 
 #define offset_in_page(p)	((unsigned long)(p) & ~PAGE_MASK)
+#define offset_in_thp(page, p)	((unsigned long)(p) & (thp_size(page) - 1))
 
 /*
  * Flags passed to show_mem() and show_free_areas() to suppress output in

_

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