]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nfs-fix-nfs_release_folio-to-not-deadlock-via-kcompactd-writeback-fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 25 Feb 2025 06:53:31 +0000 (22:53 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 00:58:46 +0000 (16:58 -0800)
fix build

Cc: Anna Schumaker <anna.schumaker@oracle.com>
Cc: Mike Snitzer <snitzer@kernel.org>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c

index bc17dec39ccfccca747603e65e337debd60791bc..a3203d97123eadeb9cd9ae87341e3e9e15ac2cac 100644 (file)
@@ -3181,7 +3181,7 @@ static int kcompactd(void *p)
        long default_timeout = msecs_to_jiffies(HPAGE_FRAG_CHECK_INTERVAL_MSEC);
        long timeout = default_timeout;
 
-       tsk->flags |= PF_KCOMPACTD;
+       current->flags |= PF_KCOMPACTD;
        set_freezable();
 
        pgdat->kcompactd_max_order = 0;
@@ -3238,7 +3238,7 @@ static int kcompactd(void *p)
                        pgdat->proactive_compact_trigger = false;
        }
 
-       tsk->flags &= ~PF_KCOMPACTD;
+       current->flags &= ~PF_KCOMPACTD;
 
        return 0;
 }