From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 11 Nov 2005 11:07:34 -0800 (PST) From: Christoph Lameter Subject: Re: [RFC] sys_punchhole() In-Reply-To: <200511110925.48259.ioe-lkml@rameria.de> Message-ID: References: <1131664994.25354.36.camel@localhost.localdomain> <20051110153254.5dde61c5.akpm@osdl.org> <200511110925.48259.ioe-lkml@rameria.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Ingo Oeser Cc: linux-kernel@vger.kernel.org, Andrew Morton , Badari Pulavarty , andrea@suse.de, hugh@veritas.com, linux-mm@kvack.org List-ID: On Fri, 11 Nov 2005, Ingo Oeser wrote: > > I haven't even heard anyone mention a need for this in the past 1-2 years. > > Because the people need it are usally at the application level. > It would be useful with hard disk editing. > > But this would need a move_blocks within the filesystem, which > could attach a given list of blocks to another file. > > E.g. mremap() for files :-) Something similar to that is included in my patch migration patchsets. It will also allow you to selectively push pages in a range out. So it does something similar to hole punching. For that you would scan over the range to be cleared and put the pages on a list using isolate_lru_page(). Then do whatever you need to with the pages. Push em out with migrate_pages(list, NULL) etc. -- 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