]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/hugetlb_inline.h
net: rtnetlink: validate IFLA_MTU attribute in rtnl_create_link()
[mirror_ubuntu-bionic-kernel.git] / include / linux / hugetlb_inline.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
8edf344c 2#ifndef _LINUX_HUGETLB_INLINE_H
e3390f67 3#define _LINUX_HUGETLB_INLINE_H
8edf344c 4
e3390f67 5#ifdef CONFIG_HUGETLB_PAGE
8edf344c
NH
6
7#include <linux/mm.h>
8
32f6271d 9static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
8edf344c 10{
ca16d140 11 return !!(vma->vm_flags & VM_HUGETLB);
8edf344c
NH
12}
13
14#else
15
32f6271d 16static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
8edf344c 17{
32f6271d 18 return false;
8edf344c
NH
19}
20
21#endif
22
23#endif