https://github.com/torvalds/linux
Revision 56199016e8672feb7b903eda003a863d5bf2b8c4 authored by Yan, Zheng on 01 June 2017, 08:44:53 UTC, committed by Ilya Dryomov on 14 June 2017, 17:33:23 UTC
ceph uses ktime_get_real_ts() to get request time stamp. In most
other cases, current_kernel_time() is used to get time stamp for
filesystem operations (called by current_time()).

There is granularity difference between ktime_get_real_ts() and
current_kernel_time(). The later one can be up to one jiffy behind
the former one. This can causes inode's ctime to go back.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 03f2190
History
Tip revision: 56199016e8672feb7b903eda003a863d5bf2b8c4 authored by Yan, Zheng on 01 June 2017, 08:44:53 UTC
ceph: use current_kernel_time() to get request time stamp
Tip revision: 5619901

back to top