Skip to content

Commit

Permalink
NFS: Remove nfs4_recover_expired_lease()
Browse files Browse the repository at this point in the history
This function doesn't add much, since all it does is access the server's
nfs_client variable.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
  • Loading branch information
Anna Schumaker authored and Anna Schumaker committed Jan 30, 2017
1 parent d7e9825 commit 334f87d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2311,11 +2311,6 @@ static int _nfs4_proc_open(struct nfs4_opendata *data)
return 0;
}

static int nfs4_recover_expired_lease(struct nfs_server *server)
{
return nfs4_client_recover_expired_lease(server->nfs_client);
}

/*
* OPEN_EXPIRED:
* reclaim state on the server after a network partition.
Expand Down Expand Up @@ -2693,7 +2688,7 @@ static int _nfs4_do_open(struct inode *dir,
dprintk("nfs4_do_open: nfs4_get_state_owner failed!\n");
goto out_err;
}
status = nfs4_recover_expired_lease(server);
status = nfs4_client_recover_expired_lease(server->nfs_client);
if (status != 0)
goto err_put_state_owner;
if (d_really_is_positive(dentry))
Expand Down

0 comments on commit 334f87d

Please sign in to comment.