aboutsummaryrefslogtreecommitdiff
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r--mm/vmalloc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index f94d4c5b0..dab60d905 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -959,13 +959,8 @@ again:
int i;
spin_lock(&vb->lock);
- if (vb->free < 1UL << order) {
- if (vb->free + vb->dirty == VMAP_BBMAP_BITS && vb->dirty != VMAP_BBMAP_BITS) {
- /* free left too small, handle as fragmented scenario */
- purge = 1;
- }
+ if (vb->free < 1UL << order)
goto next;
- }
i = VMAP_BBMAP_BITS - vb->free;
addr = vb->va->va_start + (i << PAGE_SHIFT);