firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-include_linux_vmacach...

23 lines
837 B
Diff

diff -drupN a/include/linux/vmacache.h b/include/linux/vmacache.h
--- a/include/linux/vmacache.h 2018-08-06 17:23:04.000000000 +0300
+++ b/include/linux/vmacache.h 2022-06-12 05:28:14.000000000 +0300
@@ -15,7 +15,6 @@ static inline void vmacache_flush(struct
memset(tsk->vmacache, 0, sizeof(tsk->vmacache));
}
-extern void vmacache_flush_all(struct mm_struct *mm);
extern void vmacache_update(unsigned long addr, struct vm_area_struct *newvma);
extern struct vm_area_struct *vmacache_find(struct mm_struct *mm,
unsigned long addr);
@@ -29,10 +28,6 @@ extern struct vm_area_struct *vmacache_f
static inline void vmacache_invalidate(struct mm_struct *mm)
{
mm->vmacache_seqnum++;
-
- /* deal with overflows */
- if (unlikely(mm->vmacache_seqnum == 0))
- vmacache_flush_all(mm);
}
#endif /* __LINUX_VMACACHE_H */