Re: [RFC] sys_punchhole()

From: Christoph Lameter
Date: Fri Nov 11 2005 - 14:07:31 EST


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/