Skip to contentSkip to conversation

getdents and dentry cache

DISCUSSION TR Reardon 2 participants 2 messages May 30, 2013 – May 31, 2013 VFS

lore
Share & tools
lore

TR Reardon

author
#0 lore raw

Just looking for a pointer or a brief history that might make clearer to me what is not currently obvious, having exhaustively scanned through this list and kernel source.

For filesystems such as ext2/3/4, getdents() just calls down to the underlying filesystem which in turns calls into the disk pagecache.  Why is getdents() not instead serviced via dcache?

+Reardon --
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#1 lore raw
Quoted 3 lines · TR Reardon

Just looking for a pointer or a brief history that might make clearer to me what is not currently obvious, having exhaustively scanned through this list and kernel source. ?

For filesystems such as ext2/3/4, getdents() just calls down to the underlying filesystem which in turns calls into the disk pagecache. ?Why is getdents() not instead serviced via dcache?

Er... Just how would it be serviced via dcache? dcache granularity is one entry; getdents() is used to give _all_ entries in directory, present in dcache or not. Moreover, how would you get them in the right order, even if all of them were present in dcache?