Skip to contentSkip to conversation

mm-page_reporting-change-page_reporting_order-to-page_reporting_order_unspecified.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 29

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/page_reporting: change page_reporting_order to PAGE_REPORTING_ORDER_UNSPECIFIED
has been removed from the -mm tree. Its filename was
mm-page_reporting-change-page_reporting_order-to-page_reporting_order_unspecified.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Yuvraj Sakshith <[email protected]>
Subject: mm/page_reporting: change page_reporting_order to PAGE_REPORTING_ORDER_UNSPECIFIED
Date: Tue, 3 Mar 2026 03:30:32 -0800

page_reporting_order when uninitialised, holds a magic number -1.

Since we now maintain PAGE_REPORTING_ORDER_UNSPECIFIED as -1, which is also a flag, set page_reporting_order to this flag.

Cc Brendan Jackman <[email protected]>
Cc Dexuan Cui <[email protected]>
Cc Eugenio Pérez <[email protected]>
Cc Haiyang Zhang <[email protected]>
Cc Jason Wang <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc K. Y. Srinivasan <[email protected]>
Cc Liam Howlett <[email protected]>
Cc Long Li <[email protected]>
Cc Lorenzo Stoakes (Oracle) <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Wei Liu <[email protected]>
Cc Xuan Zhuo <[email protected]>
Cc Zi Yan <[email protected]>

---

 mm/page_reporting.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/page_reporting.c renamed from mm/page_reporting.c~mm-page_reporting-change-page_reporting_order-to-page_reporting_order_unspecified +2 -2
@@ -12,7 +12,7 @@
 #include "internal.h"
 
 /* Initialize to an unsupported value */
-unsigned int page_reporting_order = -1;
+unsigned int page_reporting_order = PAGE_REPORTING_ORDER_UNSPECIFIED;
 
 static int page_order_update_notify(const char *val, const struct kernel_param *kp)
 {
@@ -369,7 +369,7 @@ int page_reporting_register(struct page_
 	 * pageblock_order.
 	 */
 
-	if (page_reporting_order == -1) {
+	if (page_reporting_order == PAGE_REPORTING_ORDER_UNSPECIFIED) {
 		if (prdev->order != PAGE_REPORTING_ORDER_UNSPECIFIED &&
 		    prdev->order <= MAX_PAGE_ORDER)
 			page_reporting_order = prdev->order;

_

Patches currently in -mm which might be from [email protected] are