NFSD: Clean up unused variable
Subsystems (2)
[email protected]
maintainerPATCH 1/1 NFSD: Clean up unused variable
From: Chuck Lever <[email protected]>
@sb should have been removed by commit 7e64c5bc497c ("NLM/NFSD: Fix lock notifications for async-capable filesystems").
Signed-off-by Chuck Lever <[email protected]>
--- fs/nfsd/nfs4state.c | 2 -- 1 file changed, 2 deletions(-)
fs/nfsd/nfs4state.c +0 -2
@@ -7966,7 +7966,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,struct nfsd4_blocked_lock *nbl =NULL ;struct file_lock *file_lock =NULL ;struct file_lock *conflock =NULL ; -struct super_block *sb;__be32 status =0 ;int lkflg;int err;
@@ -7986,7 +7985,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, status =fh_verify (rqstp, &cstate->current_fh,S_IFREG ,0 );if (status != nfs_ok)return status; - sb = cstate->current_fh.fh_dentry->d_sb;if (lock->lk_is_new) {if (nfsd4_has_session (cstate))
Signature · 1 line
2.47.0
Quoted 6 lines · On 6 Dec 2024, at 16:36, [email protected] wrote:
From: Chuck Lever <[email protected]>
@sb should have been removed by commit
7e64c5bc497c("NLM/NFSD: Fix lock notifications for async-capable filesystems").Signed-off-by Chuck Lever <[email protected]>
ah, yes thanks.
Reviewed-by Benjamin Coddington <[email protected]>
Quoted 23 lines · On Fri, 2024-12-06 at 16:36 -0500, [email protected] wrote:
From: Chuck Lever <[email protected]>
@sb should have been removed by commit
7e64c5bc497c("NLM/NFSD: Fix lock notifications for async-capable filesystems").Signed-off-by Chuck Lever <[email protected]>--- fs/nfsd/nfs4state.c | 2 -- 1 file changed, 2 deletions(-)fs/nfsd/nfs4state.c +0
-1@@ -7966,7 +7966,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,struct nfsd4_blocked_lock *nbl =NULL ;struct file_lock *file_lock =NULL ;struct file_lock *conflock =NULL ; -struct super_block *sb;__be32 status =0 ;int lkflg;int err;
fs/nfsd/nfs4state.c nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, · line 7990
Quoted 7 lines
fs/nfsd/nfs4state.c +0
-1@@ -7986,7 +7985,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, status =fh_verify (rqstp, &cstate->current_fh,S_IFREG ,0 );if (status != nfs_ok)return status; - sb = cstate->current_fh.fh_dentry->d_sb;if (lock->lk_is_new) {if (nfsd4_has_session (cstate))
Reviewed-by Jeff Layton <[email protected]>