diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index bda6cef5b97f..7e63984eb585 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -261,7 +261,8 @@ struct vmap_area { | |||
261 | }; | 261 | }; |
262 | 262 | ||
263 | static DEFINE_SPINLOCK(vmap_area_lock); | 263 | static DEFINE_SPINLOCK(vmap_area_lock); |
264 | static LIST_HEAD(vmap_area_list); | 264 | /* Export for kexec only */ |
265 | LIST_HEAD(vmap_area_list); | ||
265 | static struct rb_root vmap_area_root = RB_ROOT; | 266 | static struct rb_root vmap_area_root = RB_ROOT; |
266 | 267 | ||
267 | /* The vmap cache globals are protected by vmap_area_lock */ | 268 | /* The vmap cache globals are protected by vmap_area_lock */ |
@@ -272,6 +273,10 @@ static unsigned long cached_align; | |||
272 | 273 | ||
273 | static unsigned long vmap_area_pcpu_hole; | 274 | static unsigned long vmap_area_pcpu_hole; |
274 | 275 | ||
276 | /*** Old vmalloc interfaces ***/ | ||
277 | static DEFINE_RWLOCK(vmlist_lock); | ||
278 | static struct vm_struct *vmlist; | ||
279 | |||
275 | static struct vmap_area *__find_vmap_area(unsigned long addr) | 280 | static struct vmap_area *__find_vmap_area(unsigned long addr) |
276 | { | 281 | { |
277 | struct rb_node *n = vmap_area_root.rb_node; | 282 | struct rb_node *n = vmap_area_root.rb_node; |
@@ -1283,10 +1288,6 @@ int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages) | |||
1283 | } | 1288 | } |
1284 | EXPORT_SYMBOL_GPL(map_vm_area); | 1289 | EXPORT_SYMBOL_GPL(map_vm_area); |
1285 | 1290 | ||
1286 | /*** Old vmalloc interfaces ***/ | ||
1287 | DEFINE_RWLOCK(vmlist_lock); | ||
1288 | struct vm_struct *vmlist; | ||
1289 | |||
1290 | static void setup_vmalloc_vm(struct vm_struct *vm, struct vmap_area *va, | 1291 | static void setup_vmalloc_vm(struct vm_struct *vm, struct vmap_area *va, |
1291 | unsigned long flags, const void *caller) | 1292 | unsigned long flags, const void *caller) |
1292 | { | 1293 | { |