Messages in this thread |  | | Date | Thu, 5 Oct 2000 08:52:39 -0400 (EDT) | From | Eric Lowe <> | Subject | Re: 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/
|  |