NFSv4: Remove duplicate lookups, capability probes and fsinfo calls
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 3 Aug 2025 23:32:00 +0000 (16:32 -0700)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Aug 2025 16:48:16 +0000 (09:48 -0700)
commitb9defd611abf3d24354e14c8d85da14c7abaa07e
tree1873ca04554f42a48f257e0c8b1c540c72c4fcba
parentb01f21cacde9f2878492cf318fee61bf4ccad323
NFSv4: Remove duplicate lookups, capability probes and fsinfo calls

When crossing into a new filesystem, the NFSv4 client will look up the
new directory, and then call nfs4_server_capabilities() as well as
nfs4_do_fsinfo() at least twice.

This patch removes the duplicate calls, and reduces the initial lookup
to retrieve just a minimal set of attributes.

Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4getroot.c
fs/nfs/nfs4proc.c