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)
commit59e356a967c403b6b8dcb0035edbe0c45a84ac85
treec70fc43d64cea0b146923b8de53eb94518120e0e
parentfb33c6510d5595144d585aa194d377cf74d31911
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