[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: page cache doubt
Does someone have a clue about this? I just cannot understand the
i_mapping x i_data relationship. Any comment is very welcome!
Luciano
Luciano A. Stertz wrote:
I'm trying to understand the page cache mechanism, but I have a doubt
and couldn't find any documentation about it, neighter was able to
understand reading the code. Hope that someone can help me and/or indicate
some doc.
Every inode has an address_space, that keeps a list of cached pages
in a digital tree. So far so good. Now the doubt: the inode struct has two
address_spaces, i_mapping and i_data. As far as I could understand,
i_mapping is the address_space I'm looking for, since it is passed to the
readpage method, but what is i_data function?
TIA,
Luciano Stertz
Dont know in detail,
But this page might help you.
http://www.csn.ul.ie/~mel/projects/vm/guide/html/understand/node1.html
Also, One is a i_data is a structure and i_mapping is a pointer to the
structure.
regards manish
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/