From: Bernd Schubert Date: Mon, 19 Mar 2012 02:44:50 +0000 (-0400) Subject: nfsd: vfs_llseek() with 32 or 64 bit offsets (hashes) X-Git-Tag: v3.2.53~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ddeebd9bb1f005226b818f58cd6b2eaadf7976c;p=pandora-kernel.git nfsd: vfs_llseek() with 32 or 64 bit offsets (hashes) commit 06effdbb49af5f6c7d20affaec74603914acc768 upstream. Use 32-bit or 64-bit llseek() hashes for directory offsets depending on the NFS version. NFSv2 gets 32-bit hashes only. NOTE: This patch got rather complex as Christoph asked to set the filp->f_mode flag in the open call or immediatly after dentry_open() in nfsd_open() to avoid races. Personally I still do not see a reason for that and in my opinion FMODE_32BITHASH/FMODE_64BITHASH flags could be set nfsd_readdir(), as it follows directly after nfsd_open() without a chance of races. Signed-off-by: Bernd Schubert Signed-off-by: "Theodore Ts'o" Acked-by: J. Bruce Fields Signed-off-by: Jonathan Nieder Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed