mm, hugetlb: fix race in region tracking
[linux-2.6-microblaze.git] / include / linux / hugetlb.h
index f62c2f6..5b337cf 100644 (file)
@@ -27,6 +27,7 @@ struct hugepage_subpool {
 
 struct resv_map {
        struct kref refs;
+       spinlock_t lock;
        struct list_head regions;
 };
 extern struct resv_map *resv_map_alloc(void);