Widening ext4's readdir() cookie
Widening ext4's readdir() cookie
Posted Apr 4, 2013 19:40 UTC (Thu) by aakef (subscriber, #38030)Parent article: Widening ext4's readdir() cookie
I think "which does not otherwise need it" is not absolutely correct. Ext4s HTREE/dirindex readdir has another issue. Entries are not returned in inode, but in hash order and for example for 'ls -l' (readdir + stat) or 'rm -rf dir' that causes lots of random disk access. Recent core utils try to eliminate this by sorting results returned by readdir(), but that logic is not used by everything. Depending on the implementation "such a mapping" from above would also eliminate the random access problem at all.
Bernd