aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r--fs/nfsd/nfsctl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 0f0e77f2012f..8bff6741b1e6 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1203,8 +1203,6 @@ static ssize_t write_maxblksize(struct file *file, char *buf, size_t size)
1203} 1203}
1204 1204
1205#ifdef CONFIG_NFSD_V4 1205#ifdef CONFIG_NFSD_V4
1206extern time_t nfs4_leasetime(void);
1207
1208static ssize_t __write_leasetime(struct file *file, char *buf, size_t size) 1206static ssize_t __write_leasetime(struct file *file, char *buf, size_t size)
1209{ 1207{
1210 /* if size > 10 seconds, call 1208 /* if size > 10 seconds, call
@@ -1224,8 +1222,7 @@ static ssize_t __write_leasetime(struct file *file, char *buf, size_t size)
1224 nfs4_reset_lease(lease); 1222 nfs4_reset_lease(lease);
1225 } 1223 }
1226 1224
1227 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%ld\n", 1225 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%ld\n", nfsd4_lease);
1228 nfs4_lease_time());
1229} 1226}
1230 1227
1231/** 1228/**