diff options
author | 2024-10-01 16:33:42 -0400 | |
---|---|---|
committer | 2024-11-08 14:17:37 -0500 | |
commit | df50b5ee0564412e4570abae7767d9baa5911f23 (patch) | |
tree | f890e57683e50dfc2966756d86c9d8542f099e9d /fs/nfs/fs_context.c | |
parent | NFS: Convert the NFS module list into an array (diff) | |
download | wireguard-linux-df50b5ee0564412e4570abae7767d9baa5911f23.tar.xz wireguard-linux-df50b5ee0564412e4570abae7767d9baa5911f23.zip |
NFS: Rename get_nfs_version() -> find_nfs_version()
We have a put_nfs_version() that handles refcounting on the nfs version
module, but get_nfs_version() does much more work to find a version
module based on version number. Let's change 'get' to 'find' to better
match what it's doing.
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/fs_context.c')
-rw-r--r-- | fs/nfs/fs_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index 7e000d782e28..d553daa4c09c 100644 --- a/fs/nfs/fs_context.c +++ b/fs/nfs/fs_context.c @@ -1467,7 +1467,7 @@ static int nfs_fs_context_validate(struct fs_context *fc) /* Load the NFS protocol module if we haven't done so yet */ if (!ctx->nfs_mod) { - nfs_mod = get_nfs_version(ctx->version); + nfs_mod = find_nfs_version(ctx->version); if (IS_ERR(nfs_mod)) { ret = PTR_ERR(nfs_mod); goto out_version_unavailable; |