exec_mmap() activates a brand new mm, so vmacache_seqnum is already 0. Stop zeroing it. Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx> --- fs/exec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/exec.c b/fs/exec.c index 325dab98bc51..2afa7b0c75f2 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1024,7 +1024,6 @@ static int exec_mmap(struct mm_struct *mm) if (IS_ENABLED(CONFIG_ARCH_WANT_IRQS_OFF_ACTIVATE_MM)) local_irq_enable(); membarrier_finish_switch_mm(mm); - tsk->mm->vmacache_seqnum = 0; vmacache_flush(tsk); task_unlock(tsk); if (old_mm) { -- 2.33.1