Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365407
b: refs/heads/master
c: 13ba3fc
h: refs/heads/master
i:
  365405: 969cdf2
  365403: 5829b8c
  365399: b35276d
  365391: 408b4cb
  365375: bea7671
v: v3
  • Loading branch information
Atsushi Kumagai authored and Linus Torvalds committed Apr 29, 2013
1 parent a9b5356 commit a7bd890
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4341fa454796b8a37efd5db98112524e85e7114e
refs/heads/master: 13ba3fcbbe31068b1ee7c39a0b58ecbed03c4d72
13 changes: 13 additions & 0 deletions trunk/include/linux/vmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/list.h>
#include <asm/page.h> /* pgprot_t */
#include <linux/rbtree.h>

struct vm_area_struct; /* vma defining user mapping in mm_types.h */

Expand Down Expand Up @@ -35,6 +37,17 @@ struct vm_struct {
const void *caller;
};

struct vmap_area {
unsigned long va_start;
unsigned long va_end;
unsigned long flags;
struct rb_node rb_node; /* address sorted rbtree */
struct list_head list; /* address sorted list */
struct list_head purge_list; /* "lazy purge" list */
struct vm_struct *vm;
struct rcu_head rcu_head;
};

/*
* Highlevel APIs for driver use
*/
Expand Down
3 changes: 2 additions & 1 deletion trunk/kernel/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,8 @@ static int __init crash_save_vmcoreinfo_init(void)
VMCOREINFO_OFFSET(free_area, free_list);
VMCOREINFO_OFFSET(list_head, next);
VMCOREINFO_OFFSET(list_head, prev);
VMCOREINFO_OFFSET(vm_struct, addr);
VMCOREINFO_OFFSET(vmap_area, va_start);
VMCOREINFO_OFFSET(vmap_area, list);
VMCOREINFO_LENGTH(zone.free_area, MAX_ORDER);
log_buf_kexec_setup();
VMCOREINFO_LENGTH(free_area.free_list, MIGRATE_TYPES);
Expand Down
11 changes: 0 additions & 11 deletions trunk/mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,6 @@ EXPORT_SYMBOL(vmalloc_to_pfn);
#define VM_LAZY_FREEING 0x02
#define VM_VM_AREA 0x04

struct vmap_area {
unsigned long va_start;
unsigned long va_end;
unsigned long flags;
struct rb_node rb_node; /* address sorted rbtree */
struct list_head list; /* address sorted list */
struct list_head purge_list; /* "lazy purge" list */
struct vm_struct *vm;
struct rcu_head rcu_head;
};

static DEFINE_SPINLOCK(vmap_area_lock);
/* Export for kexec only */
LIST_HEAD(vmap_area_list);
Expand Down

0 comments on commit a7bd890

Please sign in to comment.