alloc_tag-introduce-pgtag_ref_handle-to-abstract-page-tag-references.patch removed from -mm tree
The quilt patch titled
Subject: alloc_tag: introduce pgtag_ref_handle to abstract page tag references
has been removed from the -mm tree. Its filename was
alloc_tag-introduce-pgtag_ref_handle-to-abstract-page-tag-references.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: alloc_tag: introduce pgtag_ref_handle to abstract page tag references
Date: Wed, 23 Oct 2024 10:07:58 -0700
To simplify later changes to page tag references, introduce new pgtag_ref_handle type. This allows easy replacement of page_ext as a storage of page allocation tags.
---
include/linux/mm.h | 25 ++++----- include/linux/pgalloc_tag.h | 90 ++++++++++++++++++++-------------- 2 files changed, 66 insertions(+), 49 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~alloc_tag-introduce-pgtag_ref_handle-to-abstract-page-tag-references +13 -12
@@ -4181,37 +4181,38 @@ static inline void pgalloc_tag_split(strreturn ;for (i = nr_pages; i < (1 << old_order); i += nr_pages) { -union codetag_ref *ref =get_page_tag_ref (folio_page (folio, i)); +union pgtag_ref_handle handle; +union codetag_ref ref; -if (ref) { +if (get_page_tag_ref (folio_page (folio, i), &ref, &handle)) {/* Set new reference to point to the original tag */ -alloc_tag_ref_set (ref, tag); -put_page_tag_ref (ref); +alloc_tag_ref_set (&ref, tag); +update_page_tag_ref (handle, &ref); +put_page_tag_ref (handle); } } }static inline void pgalloc_tag_copy (struct folio *new,struct folio *old) { +union pgtag_ref_handle handle; +union codetag_ref ref;struct alloc_tag *tag; -union codetag_ref *ref; tag =pgalloc_tag_get (&old->page);if (!tag)return ; - ref =get_page_tag_ref (&new->page); -if (!ref) +if (!get_page_tag_ref (&new->page, &ref, &handle))return ;/* Clear the old ref to the original allocation tag. */ clear_page_tag_ref (&old->page);/* Decrement the counters of the tag on get_new_folio. */ -alloc_tag_sub (ref,folio_size (new)); - -__alloc_tag_ref_set (ref, tag); - -put_page_tag_ref (ref); +alloc_tag_sub (&ref,folio_size (new)); +__alloc_tag_ref_set (&ref, tag); +update_page_tag_ref (handle, &ref); +put_page_tag_ref (handle); }#else /* !CONFIG_MEM_ALLOC_PROFILING */ static inline void pgalloc_tag_split (struct folio *folio,int old_order,int new_order)
include/linux/pgalloc_tag.h renamed from include/linux/pgalloc_tag.h~alloc_tag-introduce-pgtag_ref_handle-to-abstract-page-tag-references +53 -37
142 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
mm-convert-mm_lock_seq-to-a-proper-seqcount.patch
mm-introduce-mmap_lock_speculation_beginend.patch