Shyam Prasad N <nspmangalore@xxxxxxxxx> writes: > We load the dentry cache with results of QueryDirectory. But what I'm > proposing here is a read ahead, even before the next readdir is done > by the application. i.e. the idea is that the data necessary to emit > dentries is already in the cache before it is even called. That should > speed up the overall directory reads. Thanks for the explanation. We'd need to be careful as in CIFS we could end up with several automounts (DFS links) by doing these readdirs in advance, especially on slow connections and when failover happens when mounting them.