getdents and dentry cache
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
Al Viro
maintainerQuoted 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 isgetdents()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?