Re: [PATCH V3] mm/madvise: Move up the behavior parameter validation

2017-04-18 Thread Naoya Horiguchi
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

Re: [PATCH V3] mm/madvise: Move up the behavior parameter validation

2017-04-18 Thread David Rientjes
On Tue, 18 Apr 2017, 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