summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr@hp.com>2014-04-07 18:37:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-07 19:35:50 -0400
commit7aa6b4ad5a81d7761b044d38ac0120850a6396ca (patch)
treedeec2f9ebf179bdcfb92eb5a4df2e7d8586344c0 /mm/memory.c
parent9bbc04eeb01fcb5c20bb10f34989665df7200163 (diff)
mm/memory.c: update comment in unmap_single_vma()
The described issue now occurs inside mmap_region(). And unfortunately is still valid. Signed-off-by: Davidlohr Bueso <davidlohr@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 82c1e4cf00d1..c6ee34d10fcc 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1320,9 +1320,9 @@ static void unmap_single_vma(struct mmu_gather *tlb,
1320 * It is undesirable to test vma->vm_file as it 1320 * It is undesirable to test vma->vm_file as it
1321 * should be non-null for valid hugetlb area. 1321 * should be non-null for valid hugetlb area.
1322 * However, vm_file will be NULL in the error 1322 * However, vm_file will be NULL in the error
1323 * cleanup path of do_mmap_pgoff. When 1323 * cleanup path of mmap_region. When
1324 * hugetlbfs ->mmap method fails, 1324 * hugetlbfs ->mmap method fails,
1325 * do_mmap_pgoff() nullifies vma->vm_file 1325 * mmap_region() nullifies vma->vm_file
1326 * before calling this function to clean up. 1326 * before calling this function to clean up.
1327 * Since no pte has actually been setup, it is 1327 * Since no pte has actually been setup, it is
1328 * safe to do nothing in this case. 1328 * safe to do nothing in this case.