From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx156.postini.com [74.125.245.156]) by kanga.kvack.org (Postfix) with SMTP id 4159D6B0068 for ; Thu, 3 Jan 2013 01:21:13 -0500 (EST) Message-ID: <50E5234F.8040707@redhat.com> Date: Thu, 03 Jan 2013 01:21:03 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 10/9] mm: make do_mmap_pgoff return populate as a size in bytes, not as a bool References: <1356050997-2688-1-git-send-email-walken@google.com> <20121222094545.GA4222@google.com> In-Reply-To: <20121222094545.GA4222@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Michel Lespinasse Cc: Andy Lutomirski , Ingo Molnar , Al Viro , Hugh Dickins , Jorn_Engel , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org On 12/22/2012 04:45 AM, Michel Lespinasse wrote: > do_mmap_pgoff() rounds up the desired size to the next PAGE_SIZE multiple, > however there was no equivalent code in mm_populate(), which caused issues. > > This could be fixed by introduced the same rounding in mm_populate(), > however I think it's preferable to make do_mmap_pgoff() return populate > as a size rather than as a boolean, so we don't have to duplicate the > size rounding logic in mm_populate(). > > Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel -- All rights reversed -- 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