Article 4Z5ND Are direcotories saved in the page cache?

Are direcotories saved in the page cache?

by
YuvalAvra
from LinuxQuestions.org on (#4Z5ND)
I understand that the dentry cache holds directory structure, and when a file that is not in the dentry cache is accessed, the directory structure is read from disk.

Since directories are just special files, does the kernel first tries to read them from the page cache before reading from disk?

For example, if I access /home/foo/bar, then clear the dentry cache, and then access it again, will the directory structure be read from disk or from the page cache?latest?d=yIl2AUoC8zA latest?i=PMaD8XCWRyo:8AL0HoRIQg0:F7zBnMy latest?i=PMaD8XCWRyo:8AL0HoRIQg0:V_sGLiP latest?d=qj6IDK7rITs latest?i=PMaD8XCWRyo:8AL0HoRIQg0:gIN9vFwPMaD8XCWRyo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments