lkml.org 
[lkml]   [2014]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/3] mm: call vma_adjust_trans_huge() only for thp-enabled vma
Date
vma_adjust() is called also for vma(VM_HUGETLB) and it could happen that
we happen to try to split hugetlbfs hugepage. So exclude the possibility.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
---
mm/mmap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git next-20140220.orig/mm/mmap.c next-20140220/mm/mmap.c
index f53397806d7f..45a9c0d51e3f 100644
--- next-20140220.orig/mm/mmap.c
+++ next-20140220/mm/mmap.c
@@ -772,7 +772,8 @@ again: remove_next = 1 + (end > next->vm_end);
}
}

- vma_adjust_trans_huge(vma, start, end, adjust_next);
+ if (transparent_hugepage_enabled(vma))
+ vma_adjust_trans_huge(vma, start, end, adjust_next);

anon_vma = vma->anon_vma;
if (!anon_vma && adjust_next)
--
1.8.5.3


\
 
 \ /
  Last update: 2014-02-27 06:22    [W:0.091 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site