Oleg Drokin <[email protected]> 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]