diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2016-02-03 01:07:48 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-25 13:51:52 -0400 |
commit | 8bbd47140cf0d3f1cef882cc553778f417087606 (patch) | |
tree | 1e6d09f16b56a40012fcb2f6729ad3eef36351d1 /fs/ceph/xattr.c | |
parent | 5b64640cf65be4a029728c390e9b97afce2a493d (diff) |
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/xattr.c')
-rw-r--r-- | fs/ceph/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 819163d8313b..1e1c00a6d907 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c | |||
@@ -999,7 +999,7 @@ retry: | |||
999 | dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, | 999 | dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, |
1000 | &prealloc_cf); | 1000 | &prealloc_cf); |
1001 | ci->i_xattrs.dirty = true; | 1001 | ci->i_xattrs.dirty = true; |
1002 | inode->i_ctime = CURRENT_TIME; | 1002 | inode->i_ctime = current_fs_time(inode->i_sb); |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | spin_unlock(&ci->i_ceph_lock); | 1005 | spin_unlock(&ci->i_ceph_lock); |
@@ -1136,7 +1136,7 @@ retry: | |||
1136 | dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, | 1136 | dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, |
1137 | &prealloc_cf); | 1137 | &prealloc_cf); |
1138 | ci->i_xattrs.dirty = true; | 1138 | ci->i_xattrs.dirty = true; |
1139 | inode->i_ctime = CURRENT_TIME; | 1139 | inode->i_ctime = current_fs_time(inode->i_sb); |
1140 | spin_unlock(&ci->i_ceph_lock); | 1140 | spin_unlock(&ci->i_ceph_lock); |
1141 | if (lock_snap_rwsem) | 1141 | if (lock_snap_rwsem) |
1142 | up_read(&mdsc->snap_rwsem); | 1142 | up_read(&mdsc->snap_rwsem); |