diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-03-26 15:28:51 -0700 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2010-07-27 11:49:09 -0400 |
commit | a0d40c80256e31b23849f2ba781b74bf0218a1fa (patch) | |
tree | f89ad006e486c021d95db3f37763558556d731e1 /include/linux/vmalloc.h | |
parent | 08bbc9da92f7e44b9c208c6a1adba70c403b255e (diff) | |
download | linux-stable-a0d40c80256e31b23849f2ba781b74bf0218a1fa.tar.gz linux-stable-a0d40c80256e31b23849f2ba781b74bf0218a1fa.tar.bz2 linux-stable-a0d40c80256e31b23849f2ba781b74bf0218a1fa.zip |
vmap: add flag to allow lazy unmap to be disabled at runtime
Add a flag to force lazy_max_pages() to zero to prevent any outstanding
mapped pages. We'll need this for Xen.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Nick Piggin <npiggin@suse.de>
Diffstat (limited to 'include/linux/vmalloc.h')
-rw-r--r-- | include/linux/vmalloc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 227c2a585e4f..b840fdaf438c 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -7,6 +7,8 @@ struct vm_area_struct; /* vma defining user mapping in mm_types.h */ +extern bool vmap_lazy_unmap; + /* bits in flags of vmalloc's vm_struct below */ #define VM_IOREMAP 0x00000001 /* ioremap() and friends */ #define VM_ALLOC 0x00000002 /* vmalloc() */ |