Commit d70c17d4 authored by Chen Gang's avatar Chen Gang Committed by Linus Torvalds
Browse files

include/linux/hugetlb.h: use bool instead of int for hugepage_migration_supported()

It is used as a pure bool function within kernel source wide.
Signed-off-by: default avatarChen Gang <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 7fab358d
......@@ -452,12 +452,12 @@ static inline pgoff_t basepage_index(struct page *page)
extern void dissolve_free_huge_pages(unsigned long start_pfn,
unsigned long end_pfn);
static inline int hugepage_migration_supported(struct hstate *h)
static inline bool hugepage_migration_supported(struct hstate *h)
return huge_page_shift(h) == PMD_SHIFT;
return 0;
return false;
......@@ -519,7 +519,7 @@ static inline pgoff_t basepage_index(struct page *page)
return page->index;
#define dissolve_free_huge_pages(s, e) do {} while (0)
#define hugepage_migration_supported(h) 0
#define hugepage_migration_supported(h) false
static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
struct mm_struct *mm, pte_t *pte)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment