lkml.org 
[lkml]   [2000]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Would you help me ...?
Hello,

> My kernel is 2.2.5-15. I am studying buffer.c . And I can not
> understand the relation or difference between generic_readpage() and
> getblk(). When I read a data file through a process they both are called .
> But I don't understand their order,relation,difference.
> Would you please help me ?
> Thanks.

I/O through generic_readpage() is page-granular and goes into the page
cache. getblk() is for the buffer cache, which is block-sized.

Page cache is used to cache file pages. Buffer cache is used
to store all metadata. In future versions of the kernel, the buffer
cache will be used less and less, as things like directory entries are
moved into the page cache.

You probably want to start looking at the various kernel guides
and read up on the difference between the page cache and buffer
cache, that's the best place to start.

--
Eric Lowe
FibreChannel Software Engineer, Systran Corporation
elowe@systran.com


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.042 / U:0.708 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site