|
@@ -121,7 +121,7 @@ static int journal_submit_commit_record(journal_t *journal,
|
|
struct commit_header *tmp;
|
|
struct commit_header *tmp;
|
|
struct buffer_head *bh;
|
|
struct buffer_head *bh;
|
|
int ret;
|
|
int ret;
|
|
- struct timespec64 now = current_kernel_time64();
|
|
|
|
|
|
+ struct timespec64 now;
|
|
|
|
|
|
*cbh = NULL;
|
|
*cbh = NULL;
|
|
|
|
|
|
@@ -134,6 +134,7 @@ static int journal_submit_commit_record(journal_t *journal,
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
tmp = (struct commit_header *)bh->b_data;
|
|
tmp = (struct commit_header *)bh->b_data;
|
|
|
|
+ ktime_get_coarse_real_ts64(&now);
|
|
tmp->h_commit_sec = cpu_to_be64(now.tv_sec);
|
|
tmp->h_commit_sec = cpu_to_be64(now.tv_sec);
|
|
tmp->h_commit_nsec = cpu_to_be32(now.tv_nsec);
|
|
tmp->h_commit_nsec = cpu_to_be32(now.tv_nsec);
|
|
|
|
|