blob: 6923f03534d50be78ef79948767af9bc3a96a33f [file] [log] [blame]
Muchun Songf41f2ed2021-06-30 18:47:13 -07001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Free some vmemmap pages of HugeTLB
4 *
5 * Copyright (c) 2020, Bytedance. All rights reserved.
6 *
7 * Author: Muchun Song <songmuchun@bytedance.com>
8 */
9#ifndef _LINUX_HUGETLB_VMEMMAP_H
10#define _LINUX_HUGETLB_VMEMMAP_H
11#include <linux/hugetlb.h>
12
13#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP
14void free_huge_page_vmemmap(struct hstate *h, struct page *head);
15#else
16static inline void free_huge_page_vmemmap(struct hstate *h, struct page *head)
17{
18}
19#endif /* CONFIG_HUGETLB_PAGE_FREE_VMEMMAP */
20#endif /* _LINUX_HUGETLB_VMEMMAP_H */