]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/nfs/dir.c
nfs: define nfs_access_get_cached function
authorFrank van der Linden <fllinden@amazon.com>
Tue, 23 Jun 2020 22:38:57 +0000 (22:38 +0000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 13 Jul 2020 21:52:45 +0000 (17:52 -0400)
commitd2ae4f8b21c111bb795c557588d89dccd005828d
tree935109b6876bfbb675a4e8ddc0b0959ea0338eca
parent3e1f02123fba086d32dfd5729e6f4e2b54654acc
nfs: define nfs_access_get_cached function

The only consumer of nfs_access_get_cached_rcu and nfs_access_cached
calls these static functions in order to first try RCU access, and
then locked access.

Combine them in to a single function, and call that. Make this function
available to the rest of the NFS code.

Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c
include/linux/nfs_fs.h