[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <COL130-W38E921DBAB9CFCFCC45F73B94A0@phx.gbl>
Date: Sun, 4 Oct 2015 03:38:48 +0800
From: Chen Gang <xili_gchen_5257@...mail.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
"kirill.shutemov@...ux.intel.com" <kirill.shutemov@...ux.intel.com>,
"riel@...hat.com" <riel@...hat.com>, Michal Hocko <mhocko@...e.cz>,
"oleg@...hat.com" <oleg@...hat.com>,
"asha.levin@...cle.com" <asha.levin@...cle.com>,
"pfeiner@...gle.com" <pfeiner@...gle.com>,
"aarcange@...hat.com" <aarcange@...hat.com>,
"vishnu.ps@...sung.com" <vishnu.ps@...sung.com>,
Linux Memory <linux-mm@...ck.org>,
kernel mailing list <linux-kernel@...r.kernel.org>
Subject: [PATCH] mm/mmap.c: Remove redundant vma looping
>From 36dbcc145819655682f80efd49e72b01515b4e9a Mon Sep 17 00:00:00 2001
From: Chen Gang <gang.chen.5i5j@...il.com>
Date: Sun, 4 Oct 2015 03:22:41 +0800
Subject: [PATCH] mm/mmap.c: Remove redundant vma looping
vma->vm_file->f_mapping and vma->anon_vma are shared with the same vma
looping, so merge them.
Signed-off-by: Chen Gang <gang.chen.5i5j@...il.com>
---
mm/mmap.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/mm/mmap.c b/mm/mmap.c
index 8393580..f7c1631 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -3201,9 +3201,7 @@ int mm_take_all_locks(struct mm_struct *mm)
goto out_unlock;
if (vma->vm_file && vma->vm_file->f_mapping)
vm_lock_mapping(mm, vma->vm_file->f_mapping);
- }
- for (vma = mm->mmap; vma; vma = vma->vm_next) {
if (signal_pending(current))
goto out_unlock;
if (vma->anon_vma)
--
1.9.3
Chen Gang
Open, share, and attitude like air, water, and life which God blessed
Download attachment "0001-mm-mmap.c-Remove-redundant-vma-looping.patch" of type "application/octet-stream" (836 bytes)
Powered by blists - more mailing lists