From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id 29DF16B0292 for ; Fri, 1 Sep 2017 08:21:29 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id r7so102900pfj.5 for ; Fri, 01 Sep 2017 05:21:29 -0700 (PDT) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com. [148.163.156.1]) by mx.google.com with ESMTPS id y63si45575pgd.19.2017.09.01.05.21.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 05:21:27 -0700 (PDT) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v81CK3Qj108560 for ; Fri, 1 Sep 2017 08:21:27 -0400 Received: from e23smtp03.au.ibm.com (e23smtp03.au.ibm.com [202.81.31.145]) by mx0a-001b2d01.pphosted.com with ESMTP id 2cq4q9bb9e-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 01 Sep 2017 08:21:27 -0400 Received: from localhost by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 1 Sep 2017 22:21:24 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v81CLMqi24510494 for ; Fri, 1 Sep 2017 22:21:22 +1000 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v81CLEiw015547 for ; Fri, 1 Sep 2017 22:21:14 +1000 Subject: Re: [PATCH] mm/mempolicy: Move VMA address bound checks inside mpol_misplaced() References: <20170901070228.19954-1-khandual@linux.vnet.ibm.com> <268bbc32-7c1a-cdb8-039a-f1ea5d75b009@suse.cz> <8e40fafd-dcee-9baa-738e-1a870ee54b41@linux.vnet.ibm.com> From: Anshuman Khandual Date: Fri, 1 Sep 2017 17:51:18 +0530 MIME-Version: 1.0 In-Reply-To: <8e40fafd-dcee-9baa-738e-1a870ee54b41@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Message-Id: Sender: owner-linux-mm@kvack.org List-ID: To: Anshuman Khandual , Vlastimil Babka , linux-mm@kvack.org Cc: akpm@linux-foundation.org On 09/01/2017 05:47 PM, Anshuman Khandual wrote: > On 09/01/2017 02:35 PM, Vlastimil Babka wrote: >> On 09/01/2017 09:02 AM, Anshuman Khandual wrote: >>> The VMA address bound checks are applicable to all memory policy modes, >>> not just MPOL_INTERLEAVE. >> >> But only MPOL_INTERLEAVE actually uses addr and vma->vm_start. > > I thought them to be just general sanity checks. > >> >>> Hence move it to the front and make it common. >>> >>> Signed-off-by: Anshuman Khandual >> >> I would just remove them instead. Together with the BUG_ON(!vma). Looks >> like just leftover from development. > > sure, resend with suggested changes. I meant, I will resend the patch with suggested changes. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org