From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 6 Apr 2003 13:37:53 +0100 From: Jamie Lokier Subject: Re: objrmap and vmtruncate Message-ID: <20030406123753.GA23536@mail.jlokier.co.uk> References: <20030404163154.77f19d9e.akpm@digeo.com> <12880000.1049508832@flay> <20030405024414.GP16293@dualathlon.random> <20030404192401.03292293.akpm@digeo.com> <20030405040614.66511e1e.akpm@digeo.com> <20030405163003.GD1326@dualathlon.random> <20030405132406.437b27d7.akpm@digeo.com> <20030405220621.GG1326@dualathlon.random> <20030405143138.27003289.akpm@digeo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030405143138.27003289.akpm@digeo.com> Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: Andrea Arcangeli , mbligh@aracnet.com, mingo@elte.hu, hugh@veritas.com, dmccr@us.ibm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: Andrew Morton wrote: > And treating the nonlinear mappings as being mlocked is a great > simplification - I'd be interested in Ingo's views on that. More generally, how about automatically discarding VMAs and rmap chains when pages become mlocked, and not creating those structures in the first place when mapping with MAP_LOCKED? The idea is that adjacent locked regions would be mergable into a single VMA, looking a lot like the present non-linear mapping, and with no need for rmap chains. Because mlock is reversible, you'd need the capability to reconsitute individual VMAs from ptes when unlocking a region. -- Jamie -- 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: aart@kvack.org