mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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>
This commit is contained in:
parent
b912586ba7
commit
2843408ca9
|
|
@ -1758,7 +1758,7 @@ enum {
|
|||
#define MMF_RECALC_UPROBES 20 /* MMF_HAS_UPROBES can be wrong */
|
||||
#define MMF_OOM_SKIP 21 /* mm is of no interest for the OOM killer */
|
||||
#define MMF_UNSTABLE 22 /* mm is unstable for copy_from_user */
|
||||
#define MMF_HUGE_ZERO_PAGE 23 /* mm has ever used the global huge zero page */
|
||||
#define MMF_HUGE_ZERO_FOLIO 23 /* mm has ever used the global huge zero folio */
|
||||
#define MMF_DISABLE_THP 24 /* disable THP for all VMAs */
|
||||
#define MMF_DISABLE_THP_MASK (1 << MMF_DISABLE_THP)
|
||||
#define MMF_OOM_REAP_QUEUED 25 /* mm was queued for oom_reaper */
|
||||
|
|
|
|||
|
|
@ -248,13 +248,13 @@ static void put_huge_zero_folio(void)
|
|||
|
||||
struct folio *mm_get_huge_zero_folio(struct mm_struct *mm)
|
||||
{
|
||||
if (test_bit(MMF_HUGE_ZERO_PAGE, &mm->flags))
|
||||
if (test_bit(MMF_HUGE_ZERO_FOLIO, &mm->flags))
|
||||
return READ_ONCE(huge_zero_folio);
|
||||
|
||||
if (!get_huge_zero_folio())
|
||||
return NULL;
|
||||
|
||||
if (test_and_set_bit(MMF_HUGE_ZERO_PAGE, &mm->flags))
|
||||
if (test_and_set_bit(MMF_HUGE_ZERO_FOLIO, &mm->flags))
|
||||
put_huge_zero_folio();
|
||||
|
||||
return READ_ONCE(huge_zero_folio);
|
||||
|
|
@ -262,7 +262,7 @@ struct folio *mm_get_huge_zero_folio(struct mm_struct *mm)
|
|||
|
||||
void mm_put_huge_zero_folio(struct mm_struct *mm)
|
||||
{
|
||||
if (test_bit(MMF_HUGE_ZERO_PAGE, &mm->flags))
|
||||
if (test_bit(MMF_HUGE_ZERO_FOLIO, &mm->flags))
|
||||
put_huge_zero_folio();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user