Re: [PATCH v3 1/2] alloc_tag: introduce clear_page_tag_ref() helper function

From: David Hildenbrand
Date: Tue Aug 13 2024 - 11:09:01 EST


On 13.08.24 17:07, Suren Baghdasaryan wrote:
In several cases we are freeing pages which were not allocated using
common page allocators. For such cases, in order to keep allocation
accounting correct, we should clear the page tag to indicate that the
page being freed is expected to not have a valid allocation tag.
Introduce clear_page_tag_ref() helper function to be used for this.

Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
Signed-off-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>
Cc: stable@xxxxxxxxxxxxxxx # v6.10
---

Acked-by: David Hildenbrand <david@xxxxxxxxxx>

--
Cheers,

David / dhildenb