lkml.org 
[lkml]   [1999]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: oops if free a locked page

On Wed, 23 Jun 1999, Andrea Arcangeli wrote:

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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.053 / U:2.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site