diff options
author | Bernd Schubert <[email protected]> | 2012-03-18 22:44:50 -0400 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2012-03-18 22:44:50 -0400 |
commit | 06effdbb49af5f6c7d20affaec74603914acc768 (patch) | |
tree | 6cb59cbb05565e6c23c8ecf5eb79618083f330f7 /net/lapb/lapb_timer.c | |
parent | 999448a8c0202d8c41711c92385323520644527b (diff) |
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 <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Acked-by: J. Bruce Fields<[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions