diff options
author | Anna Schumaker <anna.schumaker@oracle.com> | 2024-10-01 16:33:44 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-11-08 14:17:37 -0500 |
commit | 288d7224db0c2a85bda4e2227fad3f6eb89e2874 (patch) | |
tree | bf54730d538864718ceeb43c00a2f8be8d7e76b8 /fs/nfs/namespace.c | |
parent | 3c91e4b7ae902bd5c05c14ff6fe74acd0bdd237a (diff) | |
download | linux-288d7224db0c2a85bda4e2227fad3f6eb89e2874.tar.gz linux-288d7224db0c2a85bda4e2227fad3f6eb89e2874.tar.bz2 linux-288d7224db0c2a85bda4e2227fad3f6eb89e2874.zip |
NFS: Implement get_nfs_version()
This is a pair for put_nfs_version(), and is used for incrementing the
reference count on the nfs version module. I also updated the callers I
could find who had this hardcoded up until now.
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r-- | fs/nfs/namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index e7494cdd957e..2d53574da605 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c @@ -182,7 +182,7 @@ struct vfsmount *nfs_d_automount(struct path *path) ctx->version = client->rpc_ops->version; ctx->minorversion = client->cl_minorversion; ctx->nfs_mod = client->cl_nfs_mod; - __module_get(ctx->nfs_mod->owner); + get_nfs_version(ctx->nfs_mod); ret = client->rpc_ops->submount(fc, server); if (ret < 0) { |