Skip to contentSkip to conversation

lib-reuse-page_ext_data-to-obtain-codetag_ref.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 12, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib: reuse page_ext_data() to obtain codetag_ref
has been removed from the -mm tree. Its filename was
lib-reuse-page_ext_data-to-obtain-codetag_ref.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Suren Baghdasaryan <[email protected]>
Subject: lib: reuse page_ext_data() to obtain codetag_ref
Date: Thu, 11 Jul 2024 15:04:56 -0700

codetag_ref_from_page_ext() reimplements the same calculation as page_ext_data(). Reuse existing function instead.

Fixes dcfe378c81f7 ("lib: introduce support for page allocation tagging")
Cc Kees Cook <[email protected]>
Cc Kent Overstreet <[email protected]>
Cc Pasha Tatashin <[email protected]>
Cc Sourav Panda <[email protected]>
Cc Vlastimil Babka <[email protected]>

---

 include/linux/pgalloc_tag.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/pgalloc_tag.h renamed from include/linux/pgalloc_tag.h~lib-reuse-page_ext_data-to-obtain-codetag_ref +1 -1
@@ -15,7 +15,7 @@ extern struct page_ext_operations page_a
 
 static inline union codetag_ref *codetag_ref_from_page_ext(struct page_ext *page_ext)
 {
-	return (void *)page_ext + page_alloc_tagging_ops.offset;
+	return (union codetag_ref *)page_ext_data(page_ext, &page_alloc_tagging_ops);
 }
 
 static inline struct page_ext *page_ext_from_codetag_ref(union codetag_ref *ref)

_

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

alloc_tag-export-memory-allocation-profiling-symbols-used-by-modules.patch