Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757878AbdDSAr6 convert rfc822-to-8bit (ORCPT ); Tue, 18 Apr 2017 20:47:58 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:49699 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757700AbdDSArz (ORCPT ); Tue, 18 Apr 2017 20:47:55 -0400 From: Naoya Horiguchi To: Anshuman Khandual CC: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" Subject: Re: [PATCH V3] mm/madvise: Move up the behavior parameter validation Thread-Topic: [PATCH V3] mm/madvise: Move up the behavior parameter validation Thread-Index: AQHSuATLx3Pg5x4Yn0u0f3+TFNjdn6HLRdyA Date: Wed, 19 Apr 2017 00:46:32 +0000 Message-ID: <20170419004631.GA21629@hori1.linux.bs1.fc.nec.co.jp> References: <20170413092008.5437-1-khandual@linux.vnet.ibm.com> <20170418052844.24891-1-khandual@linux.vnet.ibm.com> In-Reply-To: <20170418052844.24891-1-khandual@linux.vnet.ibm.com> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.3] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <6785EABA5E89A64E8231061A1D0D4934@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 446 Lines: 9 On Tue, Apr 18, 2017 at 10:58:44AM +0530, Anshuman Khandual wrote: > The madvise_behavior_valid() function should be called before > acting upon the behavior parameter. Hence move up the function. > This also includes MADV_SOFT_OFFLINE and MADV_HWPOISON options > as valid behavior parameter for the system call madvise(). > > Signed-off-by: Anshuman Khandual Acked-by: Naoya Horiguchi