Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192344
b: refs/heads/master
c: f958a13
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed Mar 6, 2010
1 parent 8938986 commit cf03c29
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e46b498c84163e86e2627c30bca298c968664f65
refs/heads/master: f958a1320ff7a1e0e861d3c90de6da12a88839dc
12 changes: 0 additions & 12 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -4115,15 +4115,3 @@ nfs4_recoverydir(void)
{
return user_recovery_dirname;
}

/*
* Called when leasetime is changed.
*
* nfsd4_lease is protected by nfsd_mutex since it's only really accessed
* when nfsd is starting
*/
void
nfs4_reset_lease(time_t leasetime)
{
nfsd4_lease = leasetime;
}
2 changes: 1 addition & 1 deletion trunk/fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ static ssize_t __write_leasetime(struct file *file, char *buf, size_t size)
return rv;
if (lease < 10 || lease > 3600)
return -EINVAL;
nfs4_reset_lease(lease);
nfsd4_lease = lease;
}

return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%ld\n", nfsd4_lease);
Expand Down

0 comments on commit cf03c29

Please sign in to comment.