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.4-rc1~40^2~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06effdbb49af5f6c7d20affaec74603914acc768;p=pandora-kernel.git nfsd: vfs_llseek() with 32 or 64 bit offsets (hashes) 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 --- Reading git-diff-tree failed