lkml.org 
[lkml]   [2006]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Request for export of truncate_complete_page
Oleg Drokin <green@linuxhacker.ru> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-21 06:58    [W:0.229 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site