Muchun Song | f41f2ed | 2021-06-30 18:47:13 -0700 | [diff] [blame^] | 1 | // 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 |
| 14 | void free_huge_page_vmemmap(struct hstate *h, struct page *head); |
| 15 | #else |
| 16 | static 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 */ |