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/page_reporting: change page_reporting_order to PAGE_REPORTING_ORDER_UNSPECIFIED

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.

Link: https://lkml.kernel.org/r/20260303113032.3008371-6-yuvraj.sakshith@oss.qualcomm.com
Signed-off-by: Yuvraj Sakshith <yuvraj.sakshith@oss.qualcomm.com>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Brendan Jackman <jackmanb@google.com>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Eugenio Pérez <eperezma@redhat.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Long Li <longli@microsoft.com>
Cc: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Yuvraj Sakshith and committed by
Andrew Morton
4a34e46e 5467c292

+2 -2
+2 -2
mm/page_reporting.c
··· 12 12 #include "internal.h" 13 13 14 14 /* Initialize to an unsupported value */ 15 - unsigned int page_reporting_order = -1; 15 + unsigned int page_reporting_order = PAGE_REPORTING_ORDER_UNSPECIFIED; 16 16 17 17 static int page_order_update_notify(const char *val, const struct kernel_param *kp) 18 18 { ··· 369 369 * pageblock_order. 370 370 */ 371 371 372 - if (page_reporting_order == -1) { 372 + if (page_reporting_order == PAGE_REPORTING_ORDER_UNSPECIFIED) { 373 373 if (prdev->order != PAGE_REPORTING_ORDER_UNSPECIFIED && 374 374 prdev->order <= MAX_PAGE_ORDER) 375 375 page_reporting_order = prdev->order;