From: Fan Yong Date: Mon, 19 Mar 2012 02:44:40 +0000 (-0400) Subject: ext4: return 32/64-bit dir name hash according to usage type X-Git-Tag: v3.2.53~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72b749f64fc5550e3fb0f3c72868011737ef235c;p=pandora-kernel.git ext4: return 32/64-bit dir name hash according to usage type commit d1f5273e9adb40724a85272f248f210dc4ce919a upstream. Traditionally ext2/3/4 has returned a 32-bit hash value from llseek() to appease NFSv2, which can only handle a 32-bit cookie for seekdir() and telldir(). However, this causes problems if there are 32-bit hash collisions, since the NFSv2 server can get stuck resending the same entries from the directory repeatedly. Allow ext4 to return a full 64-bit hash (both major and minor) for telldir to decrease the chance of hash collisions. This still needs integration on the NFS side. Patch-updated-by: Bernd Schubert (blame me if something is not correct) Signed-off-by: Fan Yong Signed-off-by: Andreas Dilger Signed-off-by: Bernd Schubert Signed-off-by: "Theodore Ts'o" Signed-off-by: Jonathan Nieder Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed