lkml.org 
[lkml]   [1999]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: get_page missing from generic_file_write? (2.3.12)
On Wed, 4 Aug 1999, Neil Booth wrote:

>I'm not sure, but it appears that after adding a page to the page
>cache, we do not increase its reference count before reducing it again
>later in the function. The following looks more correct, no?

Before adding the page to the page cache the reference count is 1. We add
it to the page cache and the reference count goes to 2. Then we do a free
on the page (reference count return to 1) and we return from the function
with the page in the page cache with a correct refcount of 1.

Andrea


-
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:53    [from the cache]
©2003-2011 Jasper Spaans