|
@@ -501,8 +501,9 @@ void btrfs_update_root_times(struct btrfs_trans_handle *trans,
|
|
struct btrfs_root *root)
|
|
struct btrfs_root *root)
|
|
{
|
|
{
|
|
struct btrfs_root_item *item = &root->root_item;
|
|
struct btrfs_root_item *item = &root->root_item;
|
|
- struct timespec ct = current_fs_time(root->fs_info->sb);
|
|
|
|
|
|
+ struct timespec ct;
|
|
|
|
|
|
|
|
+ ktime_get_real_ts(&ct);
|
|
spin_lock(&root->root_item_lock);
|
|
spin_lock(&root->root_item_lock);
|
|
btrfs_set_root_ctransid(item, trans->transid);
|
|
btrfs_set_root_ctransid(item, trans->transid);
|
|
btrfs_set_stack_timespec_sec(&item->ctime, ct.tv_sec);
|
|
btrfs_set_stack_timespec_sec(&item->ctime, ct.tv_sec);
|