Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2022 20:29:09 GMT
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fb8e858c69fe - stable/13 - nfscl: Replace "cred" with NULL to cleanup code
Message-ID:  <202207272029.26RKT9cM054566@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by rmacklem:

URL: https://cgit.FreeBSD.org/src/commit/?id=fb8e858c69fe1773ce1e28efda17fa23304f58ad

commit fb8e858c69fe1773ce1e28efda17fa23304f58ad
Author:     Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2022-07-11 22:51:27 +0000
Commit:     Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2022-07-27 20:25:54 +0000

    nfscl: Replace "cred" with NULL to cleanup code
    
    Commit 326bcf9394c7 added a new "cred" argument to nfscl_reqstart().
    Fsinfo is a NFSv3 RPC and since the "cred" argument is not
    used for NFSv3, it does not matter what is passed in.
    However, to be consistent with the rest of the patch, change the
    argument to NULL.
    
    This patch should not result in a semantics change.
    
    PR: 260011
    
    (cherry picked from commit 2adb30740b12d4b80b8a1eb04b58ce0f6eb51de1)
---
 sys/fs/nfsclient/nfs_clrpcops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
index 034770ddd67c..05e3ebe5114d 100644
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -4533,7 +4533,7 @@ nfsrpc_fsinfo(vnode_t vp, struct nfsfsinfo *fsp, struct ucred *cred,
 	int error;
 
 	*attrflagp = 0;
-	NFSCL_REQSTART(nd, NFSPROC_FSINFO, vp, cred);
+	NFSCL_REQSTART(nd, NFSPROC_FSINFO, vp, NULL);
 	error = nfscl_request(nd, vp, p, cred, stuff);
 	if (error)
 		return (error);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207272029.26RKT9cM054566>