[lkml]   [1999]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:53    [W:0.018 / U:53.720 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site