diff options
author | Colin Cross <ccross@android.com> | 2010-12-21 18:34:37 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-12-21 18:34:37 -0800 |
commit | b104a07edb2a319f734ddc4fe04852865d8d9e24 (patch) | |
tree | a0cd50b3d84ece4d94e366fac4b440e380c2d247 /mm/vmalloc.c | |
parent | e87ec4d59e1f96381547e614c5279bed63775719 (diff) | |
parent | a1346c99fc89f2b3d35c7d7e2e4aef8ea4124342 (diff) |
Merge commit 'v2.6.36.2' into linux-tegra-2.6.36
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 6b8889da69a6..d8087f0db507 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -517,6 +517,15 @@ static atomic_t vmap_lazy_nr = ATOMIC_INIT(0); static void purge_fragmented_blocks_allcpus(void); /* + * called before a call to iounmap() if the caller wants vm_area_struct's + * immediately freed. + */ +void set_iounmap_nonlazy(void) +{ + atomic_set(&vmap_lazy_nr, lazy_max_pages()+1); +} + +/* * Purges all lazily-freed vmap areas. * * If sync is 0 then don't purge if there is already a purge in progress. |