aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/locks.c6
-rw-r--r--fs/nfsd/nfsxdr.c1
2 files changed, 3 insertions, 4 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 1bd71c4d663a..db374a025811 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1554,9 +1554,9 @@ out:
1554EXPORT_SYMBOL(__break_lease); 1554EXPORT_SYMBOL(__break_lease);
1555 1555
1556/** 1556/**
1557 * lease_get_mtime - get the last modified time of an inode 1557 * lease_get_mtime - update modified time of an inode with exclusive lease
1558 * @inode: the inode 1558 * @inode: the inode
1559 * @time: pointer to a timespec which will contain the last modified time 1559 * @time: pointer to a timespec which contains the last modified time
1560 * 1560 *
1561 * This is to force NFS clients to flush their caches for files with 1561 * This is to force NFS clients to flush their caches for files with
1562 * exclusive leases. The justification is that if someone has an 1562 * exclusive leases. The justification is that if someone has an
@@ -1580,8 +1580,6 @@ void lease_get_mtime(struct inode *inode, struct timespec *time)
1580 1580
1581 if (has_lease) 1581 if (has_lease)
1582 *time = current_time(inode); 1582 *time = current_time(inode);
1583 else
1584 *time = inode->i_mtime;
1585} 1583}
1586 1584
1587EXPORT_SYMBOL(lease_get_mtime); 1585EXPORT_SYMBOL(lease_get_mtime);
diff --git a/fs/nfsd/nfsxdr.c b/fs/nfsd/nfsxdr.c
index 644a0342f0e0..79b6064f8977 100644
--- a/fs/nfsd/nfsxdr.c
+++ b/fs/nfsd/nfsxdr.c
@@ -188,6 +188,7 @@ encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp,
188 *p++ = htonl((u32) stat->ino); 188 *p++ = htonl((u32) stat->ino);
189 *p++ = htonl((u32) stat->atime.tv_sec); 189 *p++ = htonl((u32) stat->atime.tv_sec);
190 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); 190 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0);
191 time = stat->mtime;
191 lease_get_mtime(d_inode(dentry), &time); 192 lease_get_mtime(d_inode(dentry), &time);
192 *p++ = htonl((u32) time.tv_sec); 193 *p++ = htonl((u32) time.tv_sec);
193 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); 194 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0);