From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx133.postini.com [74.125.245.133]) by kanga.kvack.org (Postfix) with SMTP id B2C706B0068 for ; Thu, 3 Jan 2013 13:55:06 -0500 (EST) Received: by mail-vc0-f172.google.com with SMTP id fw7so15740591vcb.17 for ; Thu, 03 Jan 2013 10:55:05 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20121222094545.GA4222@google.com> References: <1356050997-2688-1-git-send-email-walken@google.com> <20121222094545.GA4222@google.com> From: Andy Lutomirski Date: Thu, 3 Jan 2013 10:54:44 -0800 Message-ID: Subject: Re: [PATCH 10/9] mm: make do_mmap_pgoff return populate as a size in bytes, not as a bool Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Michel Lespinasse Cc: Ingo Molnar , Al Viro , Hugh Dickins , Jorn_Engel , Rik van Riel , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Sat, Dec 22, 2012 at 1: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 This appears to fix my hangs. --Andy -- 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