page_alloc: fix invalid watermark check on a negative value
[sfrench/cifs-2.6.git] / mm / page_idle.c
index fc0435abf909506c043aaf9adb8ace7bb598f622..bc08332a609c2c219d6aad6bb83894c504f0b238 100644 (file)
@@ -86,11 +86,12 @@ static bool page_idle_clear_pte_refs_one(struct folio *folio,
 static void page_idle_clear_pte_refs(struct page *page)
 {
        struct folio *folio = page_folio(page);
+
        /*
-        * Since rwc.arg is unused, rwc is effectively immutable, so we
-        * can make it static const to save some cycles and stack.
+        * Since rwc.try_lock is unused, rwc is effectively immutable, so we
+        * can make it static to save some cycles and stack.
         */
-       static const struct rmap_walk_control rwc = {
+       static struct rmap_walk_control rwc = {
                .rmap_one = page_idle_clear_pte_refs_one,
                .anon_lock = folio_lock_anon_vma_read,
        };