net: bonding: fix possible NULL deref in rlb code
[linux-2.6-microblaze.git] / mm / page_idle.c
index fc0435a..bc08332 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,
        };