mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
Use the correct clock for userspace time.
The ktime_get_coarse_real_ts64() implementation for userspace was using CLOCK_MONOTONIC instead of CLOCK_REALTIME_COARSE. This resulted in files being timestamped with a time close to the unix epoch. Signed-off-by: Justin Husted <sigstop@gmail.com>
This commit is contained in:
parent
4ed889295c
commit
ff695c5afb
@ -149,7 +149,7 @@ static inline u64 ktime_get_real_seconds(void)
|
|||||||
|
|
||||||
static inline void ktime_get_coarse_real_ts64(struct timespec64 *ts)
|
static inline void ktime_get_coarse_real_ts64(struct timespec64 *ts)
|
||||||
{
|
{
|
||||||
clock_gettime(CLOCK_MONOTONIC, ts);
|
clock_gettime(CLOCK_REALTIME_COARSE, ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define current_kernel_time64() current_kernel_time()
|
#define current_kernel_time64() current_kernel_time()
|
||||||
|
Loading…
Reference in New Issue
Block a user