Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: rename MMF_HUGE_ZERO_PAGE to MMF_HUGE_ZERO_FOLIO

As all the helper functions has been renamed from *_page to *_folio,
rename the MM flag from MMF_HUGE_ZERO_PAGE to MMF_HUGE_ZERO_FOLIO.

No functional changes.

Link: https://lkml.kernel.org/r/20250811084113.647267-3-kernel@pankajraghav.com
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Suggested-by: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "Darrick J. Wong" <djwong@kernel.org>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Luis Chamberalin <mcgrof@kernel.org>
Cc: Mariano Pache <npache@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Thomas Gleinxer <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Kiryl Shutsemau <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Pankaj Raghav and committed by
Andrew Morton
2843408c b912586b

+4 -4
+1 -1
include/linux/mm_types.h
··· 1758 1758 #define MMF_RECALC_UPROBES 20 /* MMF_HAS_UPROBES can be wrong */ 1759 1759 #define MMF_OOM_SKIP 21 /* mm is of no interest for the OOM killer */ 1760 1760 #define MMF_UNSTABLE 22 /* mm is unstable for copy_from_user */ 1761 - #define MMF_HUGE_ZERO_PAGE 23 /* mm has ever used the global huge zero page */ 1761 + #define MMF_HUGE_ZERO_FOLIO 23 /* mm has ever used the global huge zero folio */ 1762 1762 #define MMF_DISABLE_THP 24 /* disable THP for all VMAs */ 1763 1763 #define MMF_DISABLE_THP_MASK (1 << MMF_DISABLE_THP) 1764 1764 #define MMF_OOM_REAP_QUEUED 25 /* mm was queued for oom_reaper */
+3 -3
mm/huge_memory.c
··· 248 248 249 249 struct folio *mm_get_huge_zero_folio(struct mm_struct *mm) 250 250 { 251 - if (test_bit(MMF_HUGE_ZERO_PAGE, &mm->flags)) 251 + if (test_bit(MMF_HUGE_ZERO_FOLIO, &mm->flags)) 252 252 return READ_ONCE(huge_zero_folio); 253 253 254 254 if (!get_huge_zero_folio()) 255 255 return NULL; 256 256 257 - if (test_and_set_bit(MMF_HUGE_ZERO_PAGE, &mm->flags)) 257 + if (test_and_set_bit(MMF_HUGE_ZERO_FOLIO, &mm->flags)) 258 258 put_huge_zero_folio(); 259 259 260 260 return READ_ONCE(huge_zero_folio); ··· 262 262 263 263 void mm_put_huge_zero_folio(struct mm_struct *mm) 264 264 { 265 - if (test_bit(MMF_HUGE_ZERO_PAGE, &mm->flags)) 265 + if (test_bit(MMF_HUGE_ZERO_FOLIO, &mm->flags)) 266 266 put_huge_zero_folio(); 267 267 } 268 268