Re: [PATCH v5 1/9] mm: Consolidate freeing of typed folios on final folio_put()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04.03.25 09:45, Kirill A. Shutemov wrote:
On Mon, Mar 03, 2025 at 05:10:05PM +0000, Fuad Tabba wrote:
+static inline int page_get_type(const struct page *page)
+{
+	return page->page_type >> 24;

This magic number in page_type code asks for a #define.

As Willy is about to rewrite most of that either way (once the page type is stored elsewhere), I'm not sure if that define is really valuable at this point.

--
Cheers,

David / dhildenb





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux