> Right now I am using a put_page_refcount to decrease the page count
> without calling free_pages by hand when I know I have some additional
> refcount that can't trigger the page to be released for real, this way for
> example I issue a put_page_refcount(2, page) in truncate_inode_pages
> instead of a __free_page in try_to_free_buffers and two __free_pages in
> truncate_inode_pages. [...]
yes thats a useful optimization indeed - was in my queue :). Although
put_page(page,2) in truncate_inode_pages() is a bug if you look harder,
the last put_page() is the 'final' one as well.
-- mingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/