Merge tag 'ovl-update-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/overlay...
[platform/kernel/linux-starfive.git] / include / linux / net_mm.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #ifdef CONFIG_MMU
3
4 #ifdef CONFIG_INET
5 extern const struct vm_operations_struct tcp_vm_ops;
6 static inline bool vma_is_tcp(const struct vm_area_struct *vma)
7 {
8         return vma->vm_ops == &tcp_vm_ops;
9 }
10 #else
11 static inline bool vma_is_tcp(const struct vm_area_struct *vma)
12 {
13         return false;
14 }
15 #endif /* CONFIG_INET*/
16
17 #endif /* CONFIG_MMU */