]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
NFS: drop the _locked postfix from nfs_start_delegation_return
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Jan 2026 07:26:59 +0000 (08:26 +0100)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 20 Jan 2026 19:49:46 +0000 (14:49 -0500)
Now that nfs_start_delegation_return_locked is gone, and we have
RCU locking asserts, drop the extra postfix.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/delegation.c

index b90d30bf7a31720a04f5371d74cb041bc59e229d..47ecf67ace91e022612f2c4af875108b77d50eab 100644 (file)
@@ -315,7 +315,7 @@ static struct inode *nfs_delegation_grab_inode(struct nfs_delegation *delegation
 }
 
 static struct nfs_delegation *
-nfs_start_delegation_return_locked(struct nfs_inode *nfsi)
+nfs_start_delegation_return(struct nfs_inode *nfsi)
 {
        struct nfs_delegation *ret = NULL;
        struct nfs_delegation *delegation;
@@ -588,7 +588,7 @@ static int nfs_end_delegation_return(struct inode *inode, struct nfs_delegation
 out_return:
        err = nfs_do_return_delegation(inode, delegation, issync);
 out:
-       /* Refcount matched in nfs_start_delegation_return_locked() */
+       /* Refcount matched in nfs_start_delegation_return() */
        nfs_put_delegation(delegation);
        return err;
 }
@@ -663,7 +663,7 @@ restart:
                        }
                }
 
-               delegation = nfs_start_delegation_return_locked(NFS_I(inode));
+               delegation = nfs_start_delegation_return(NFS_I(inode));
                rcu_read_unlock();
 
                iput(to_put);
@@ -786,7 +786,7 @@ int nfs4_inode_return_delegation(struct inode *inode)
        struct nfs_delegation *delegation;
 
        rcu_read_lock();
-       delegation = nfs_start_delegation_return_locked(nfsi);
+       delegation = nfs_start_delegation_return(nfsi);
        rcu_read_unlock();
 
        if (!delegation)
@@ -1263,13 +1263,13 @@ restart:
                inode = nfs_delegation_grab_inode(delegation);
                if (inode == NULL)
                        continue;
-               delegation = nfs_start_delegation_return_locked(NFS_I(inode));
+               delegation = nfs_start_delegation_return(NFS_I(inode));
                rcu_read_unlock();
                if (delegation != NULL) {
                        if (nfs_detach_delegation(NFS_I(inode), delegation,
                                                server) != NULL)
                                nfs_free_delegation(server, delegation);
-                       /* Match nfs_start_delegation_return_locked */
+                       /* Match nfs_start_delegation_return */
                        nfs_put_delegation(delegation);
                }
                iput(inode);