summaryrefslogtreecommitdiffstats
path: root/fs/ceph/inode.c
diff options
context:
space:
mode:
authorDeepa Dinamani2016-02-03 07:07:48 +0100
committerIlya Dryomov2016-03-25 18:51:52 +0100
commit8bbd47140cf0d3f1cef882cc553778f417087606 (patch)
tree1e6d09f16b56a40012fcb2f6729ad3eef36351d1 /fs/ceph/inode.c
parentceph: scattered page writeback (diff)
downloadkernel-qcow2-linux-8bbd47140cf0d3f1cef882cc553778f417087606.tar.gz
kernel-qcow2-linux-8bbd47140cf0d3f1cef882cc553778f417087606.tar.xz
kernel-qcow2-linux-8bbd47140cf0d3f1cef882cc553778f417087606.zip
ceph: replace CURRENT_TIME by current_fs_time()
CURRENT_TIME macro is not appropriate for filesystems as it doesn't use the right granularity for filesystem timestamps. Use current_fs_time() instead. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r--fs/ceph/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index e48fd8b23257..cec68a6e20df 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1950,7 +1950,7 @@ int ceph_setattr(struct dentry *dentry, struct iattr *attr)
if (dirtied) {
inode_dirty_flags = __ceph_mark_dirty_caps(ci, dirtied,
&prealloc_cf);
- inode->i_ctime = CURRENT_TIME;
+ inode->i_ctime = current_fs_time(inode->i_sb);
}
release &= issued;