Merge tag 'spi-fix-v4.19-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6/btrfs-unstable.git] / include / linux / vmacache.h
blob6fce268a4588e5a064214b84309f4520f8759d65
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_VMACACHE_H
3 #define __LINUX_VMACACHE_H
5 #include <linux/sched.h>
6 #include <linux/mm.h>
8 static inline void vmacache_flush(struct task_struct *tsk)
10 memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas));
13 extern void vmacache_update(unsigned long addr, struct vm_area_struct *newvma);
14 extern struct vm_area_struct *vmacache_find(struct mm_struct *mm,
15 unsigned long addr);
17 #ifndef CONFIG_MMU
18 extern struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm,
19 unsigned long start,
20 unsigned long end);
21 #endif
23 static inline void vmacache_invalidate(struct mm_struct *mm)
25 mm->vmacache_seqnum++;
28 #endif /* __LINUX_VMACACHE_H */