bcachefs: use same timesource as current_time()
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 16 Apr 2019 20:03:31 +0000 (16:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:20 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h

index 72f9f5f9abe908970a2f74e1b2b9fcbf58a6b391..6f33121736bb812c9e459dd79d34646423765f5c 100644 (file)
@@ -838,7 +838,7 @@ static inline s64 bch2_current_time(struct bch_fs *c)
 {
        struct timespec64 now;
 
-       ktime_get_real_ts64(&now);
+       ktime_get_coarse_real_ts64(&now);
        return timespec_to_bch2_time(c, now);
 }