NFSD: Clean up unused variable
authorChuck Lever <chuck.lever@oracle.com>
Fri, 6 Dec 2024 21:36:33 +0000 (16:36 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 6 Jan 2025 14:37:35 +0000 (09:37 -0500)
@sb should have been removed by commit 7e64c5bc497c ("NLM/NFSD: Fix
lock notifications for async-capable filesystems").

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c

index 9fbf7c8f0a3eebd78fc70134b405d1940299d585..b9d0a300d3769661173010d161445042f452b152 100644 (file)
@@ -7962,7 +7962,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;
@@ -7982,7 +7981,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))