From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD8142D543B for ; Tue, 12 Aug 2025 00:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754959469; cv=none; b=fIFEFG8lY2EwzeUCk1oDzZRAC/Z/0wmVFYSRWHDkEkV5+i76PLtqcSvqBIUb/LrYViHXppl+0tUAoKbrql6Qae82sUH+qhxsZ/KWwrOnshHDKORixoOEfiW7qJQdi347DymqASRgDAOm57AE5/MK7WtcSxk0Jv3NPxtD465qOTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754959469; c=relaxed/simple; bh=2wlGWLZfjYxETj3qQVUk8ChYOqtoDBPX+vqNXs7ztTI=; h=Date:To:From:Subject:Message-Id; b=CXtJYrjscJs91/M/3qMNsOUeg5vH3ojwef9XHYQO/mYSvgRV25w/K/qJaQMp9FuVIxR7i739rzROlyj2dlI3v61lXukGcCExwd0E+7hqUfGqwyodm9g8irDCMML8qChWAaGNU5EDuWxhg+qGVr+yfhUNLOsOb4UcQDYqVZhFsPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=oY5QmwsN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="oY5QmwsN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47450C4CEED; Tue, 12 Aug 2025 00:44:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1754959469; bh=2wlGWLZfjYxETj3qQVUk8ChYOqtoDBPX+vqNXs7ztTI=; h=Date:To:From:Subject:From; b=oY5QmwsNpT+xrM+XfNRyC/84Hc4sEJ2fENaw/6TPaYFJFop1bAAmKKAATwmiF+p6u WzHTkr3HyI30+4G1o/ny7I+Pf/+gahJvwxAH0cGXQT4vnekzSUjbD43tSudwUyaKAC jXaZV6pmz7/lBtE8pdfOP034eenuUwYWM91nBcdk= Date: Mon, 11 Aug 2025 17:44:28 -0700 To: mm-commits@vger.kernel.org,ziy@nvidia.com,willy@infradead.org,vbabka@suse.cz,tglx@linutronix.de,surenb@google.com,ryan.roberts@arm.com,rppt@kernel.org,ritesh.list@gmail.com,npache@redhat.com,mhocko@suse.com,mcgrof@kernel.org,lorenzo.stoakes@oracle.com,liam.howlett@oracle.com,hch@lst.de,djwong@kernel.org,dev.jain@arm.com,david@redhat.com,baolin.wang@linux.alibaba.com,axboe@kernel.dk,p.raghav@samsung.com,akpm@linux-foundation.org From: Andrew Morton Subject: + mm-rename-mmf_huge_zero_page-to-mmf_huge_zero_folio.patch added to mm-new branch Message-Id: <20250812004429.47450C4CEED@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: mm: rename MMF_HUGE_ZERO_PAGE to MMF_HUGE_ZERO_FOLIO has been added to the -mm mm-new branch. Its filename is mm-rename-mmf_huge_zero_page-to-mmf_huge_zero_folio.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-rename-mmf_huge_zero_page-to-mmf_huge_zero_folio.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Pankaj Raghav Subject: mm: rename MMF_HUGE_ZERO_PAGE to MMF_HUGE_ZERO_FOLIO Date: Mon, 11 Aug 2025 10:41:10 +0200 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 Reviewed-by: Lorenzo Stoakes Reviewed-by: Zi Yan Suggested-by: David Hildenbrand Acked-by: David Hildenbrand Cc: Baolin Wang Cc: Christoph Hellwig Cc: "Darrick J. Wong" Cc: Dev Jain Cc: Jens Axboe Cc: Liam Howlett Cc: Luis Chamberalin Cc: Mariano Pache Cc: Matthew Wilcox (Oracle) Cc: Michal Hocko Cc: Mike Rapoport Cc: "Ritesh Harjani (IBM)" Cc: Ryan Roberts Cc: Suren Baghdasaryan Cc: Thomas Gleinxer Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- include/linux/mm_types.h | 2 +- mm/huge_memory.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/include/linux/mm_types.h~mm-rename-mmf_huge_zero_page-to-mmf_huge_zero_folio +++ a/include/linux/mm_types.h @@ -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 */ --- a/mm/huge_memory.c~mm-rename-mmf_huge_zero_page-to-mmf_huge_zero_folio +++ a/mm/huge_memory.c @@ -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(str 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(); } _ Patches currently in -mm which might be from p.raghav@samsung.com are mm-rename-huge_zero_page-to-huge_zero_folio.patch mm-rename-mmf_huge_zero_page-to-mmf_huge_zero_folio.patch mm-add-persistent-huge-zero-folio.patch mm-add-largest_zero_folio-routine.patch block-use-largest_zero_folio-in-__blkdev_issue_zero_pages.patch