]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Use the 64-bit server readdir cookies when possible
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 3 Feb 2020 19:49:33 +0000 (14:49 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:28 +0000 (08:34 -0400)
commit9f36a1710d1749ec3456c80670a441c620989495
treec70fc43d64cea0b146923b8de53eb94518120e0e
parentba9c2e0fd2280c388a30da62f9fc4209f087fef0
NFS: Use the 64-bit server readdir cookies when possible

When we're running as a 64-bit architecture and are not running in
32-bit compatibility mode, it is better to use the 64-bit readdir
cookies that supplied by the server. Doing so improves the accuracy
of telldir()/seekdir(), particularly when the directory is changing,
for instance, when doing 'rm -rf'.

We still fall back to using the 32-bit offsets on 32-bit architectures
and when in compatibility mode.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c