Hi list,
I was going through the chapter 15: The Page Cache of "Understanding the Linux Kernel".
It was written under "The address_space Object" section:
Quite surprisingly, the page cache may happily contain multiple copies of the same disk data. For instance, the same 4-KB block of data of a regular file can be accessed in the following ways:
- Reading the file; hence, the data is included in a page owned by the regular file's inode.
- Reading the block from the device file (disk partition) that hosts the file; hence, the data is included in a page owned by the master inode of the block device file.
I did not understand this part. How the duplicate pages will be present in the Page cache. Anybody could please elaborate it further.
Thanks and Regards,
Adil