regmap: merge regmap_update_bits_check() into macro
[deliverable/linux.git] / include / linux / hugetlb.h
index b0eb06423d5eccba6cb850078af6ffc60d97c382..7d953c2542a8f296fafbcb59b2bac323c7a64407 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/cgroup.h>
 #include <linux/list.h>
 #include <linux/kref.h>
+#include <asm/pgtable.h>
 
 struct ctl_table;
 struct user_struct;
@@ -263,20 +264,18 @@ struct file *hugetlb_file_setup(const char *name, size_t size, vm_flags_t acct,
                                struct user_struct **user, int creat_flags,
                                int page_size_log);
 
-static inline int is_file_hugepages(struct file *file)
+static inline bool is_file_hugepages(struct file *file)
 {
        if (file->f_op == &hugetlbfs_file_operations)
-               return 1;
-       if (is_file_shm_hugepages(file))
-               return 1;
+               return true;
 
-       return 0;
+       return is_file_shm_hugepages(file);
 }
 
 
 #else /* !CONFIG_HUGETLBFS */
 
-#define is_file_hugepages(file)                        0
+#define is_file_hugepages(file)                        false
 static inline struct file *
 hugetlb_file_setup(const char *name, size_t size, vm_flags_t acctflag,
                struct user_struct **user, int creat_flags,
This page took 0.030807 seconds and 5 git commands to generate.