]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/hugetlb.h
Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64...
[karo-tx-linux.git] / include / linux / hugetlb.h
index 8c43cc469d78259b6028dfb30be8899b9a95e3d0..5b337cf8fb8655755fd00360df587745e8cc34f6 100644 (file)
@@ -6,6 +6,8 @@
 #include <linux/fs.h>
 #include <linux/hugetlb_inline.h>
 #include <linux/cgroup.h>
+#include <linux/list.h>
+#include <linux/kref.h>
 
 struct ctl_table;
 struct user_struct;
@@ -23,6 +25,14 @@ struct hugepage_subpool {
        long max_hpages, used_hpages;
 };
 
+struct resv_map {
+       struct kref refs;
+       spinlock_t lock;
+       struct list_head regions;
+};
+extern struct resv_map *resv_map_alloc(void);
+void resv_map_release(struct kref *ref);
+
 extern spinlock_t hugetlb_lock;
 extern int hugetlb_max_hstate __read_mostly;
 #define for_each_hstate(h) \