aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsctl.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2010-03-01 19:43:02 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2010-03-06 15:02:03 -0500
commitf958a1320ff7a1e0e861d3c90de6da12a88839dc (patch)
tree32ab7959a6bf6c6062634eb2a10ba1cbaf6451bb /fs/nfsd/nfsctl.c
parente46b498c84163e86e2627c30bca298c968664f65 (diff)
nfsd4: remove unnecessary lease-setting function
This is another layer of indirection that doesn't really buy us anything. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r--fs/nfsd/nfsctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 8bff6741b1e6..6738e9d8a83d 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1219,7 +1219,7 @@ static ssize_t __write_leasetime(struct file *file, char *buf, size_t size)
1219 return rv; 1219 return rv;
1220 if (lease < 10 || lease > 3600) 1220 if (lease < 10 || lease > 3600)
1221 return -EINVAL; 1221 return -EINVAL;
1222 nfs4_reset_lease(lease); 1222 nfsd4_lease = lease;
1223 } 1223 }
1224 1224
1225 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%ld\n", nfsd4_lease); 1225 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%ld\n", nfsd4_lease);