summaryrefslogtreecommitdiff
path: root/include/linux/net_mm.h
blob: b298998bd5a0715e48817c065e799ea610910360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifdef CONFIG_MMU

#ifdef CONFIG_INET
extern const struct vm_operations_struct tcp_vm_ops;
static inline bool vma_is_tcp(const struct vm_area_struct *vma)
{
	return vma->vm_ops == &tcp_vm_ops;
}
#else
static inline bool vma_is_tcp(const struct vm_area_struct *vma)
{
	return false;
}
#endif /* CONFIG_INET*/

#endif /* CONFIG_MMU */