lkml.org 
[lkml]   [2000]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NWFS readpage() in 2.2.X -- after_unlock_page() not exported

call __free_page() after the IO completes seems to be the deal here.
This is very confusing in the code FYI.

Jeff

"Jeff V. Merkey" wrote:
>
> "Jeff V. Merkey" wrote:
> >
>
> Another item that's somewhat confusing in the code is that
> generic_readpage() is FREEING the page by setting PG_free_after in the
> page->flags then calling __free_page() in after_unlock_page() which
> would seem to indicate that right after going through the overhead of
> writing data into the page, we free it after the IO completes (???).
> Doesn't the page with the data we just copied get cached in the page
> cache, or is there yet another copy operation somewhere else?
>
> What's the deal here?
>
> Jeff

-
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:58    [W:0.039 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site