Re: Request for export of truncate_complete_page

From: Andrew Morton
Date: Tue Feb 21 2006 - 00:53:38 EST


Oleg Drokin <green@xxxxxxxxxxxxxx> wrote:
>
> Hello!
>
> Can I ask for truncate_complete_page() to be exported?
> For Lustre filesystem it is necessary to poke out pages in the middle of
> a file, but truncate_inode_pages() is not very suitable, because we
> poke those pages one at a time when locks on those pages are cancelled, but
> we cannot kill entire set of pages as a group, because there might be some
> other lock that covers a subset of those pages, so we still need to iterate
> through all of them, and while we are at it, it is easier to kill pages
> as we check them one by one.
>

Isn't truncate_inode_pages_range() suitable?

> +EXPORT_SYMBOL(truncate_complete_page);

_GPL would be nicer. Plus a comment to keep people from "cleaning it up".

-
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/