All of lore.kernel.org
 help / color / mirror / Atom feed
* Question on readdir implementation
@ 2009-09-15  9:57 Zhang Huan
  2009-09-15 14:41 ` Andreas Dilger
  2009-09-15 14:53 ` Theodore Tso
  0 siblings, 2 replies; 6+ messages in thread
From: Zhang Huan @ 2009-09-15  9:57 UTC (permalink / raw)
  To: linux-ext4

Hi all,

I'm reading EXT4 codes and has some questions about readdir
implementation.

Why traverse the directory in hash order? This brings lots of code to
build and traverse a red-black tree. Why not just plainly traverse the
directory's blocks?

Since the red-black tree is built every time a NFS readdir request comes
in, in case of hash collision, the nfs client may receive duplicate dir
entries if the buffer is not large enough to return all entries with the
same hash value in once.

Thanks.

-- 
Zhang Huan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-09-16  5:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-15  9:57 Question on readdir implementation Zhang Huan
2009-09-15 14:41 ` Andreas Dilger
2009-09-15 14:53 ` Theodore Tso
2009-09-15 17:56   ` Florian Weimer
2009-09-15 18:38     ` Theodore Tso
2009-09-16  5:47   ` Zhang Huan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.