a question about page cache and buffer cache in kernel 2.4.18

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



when a block device such as /dev/hda1 was read as device file open("/dev/hda1",...) ,page cache was set up,the buffer cache's physical block number for the page is adjacent . but when a file name a.txt in /dev/hda1 was read . open("/../a.txt",...),page cache was set up too,but the buffer cache needn't be adjacent.
so, there may be two copy in page cache for the same physical block,how can they be consitent?
when read a regular file,block_read_full_page was called ,it never find if the buffer cache of the page has already in the anothe page .
I am confused by this,anyone helps me out? Thanks!


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux