|
@@ -1340,7 +1340,7 @@ static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info,
|
|
atomic_set(&root->log_writers, 0);
|
|
atomic_set(&root->log_writers, 0);
|
|
atomic_set(&root->log_batch, 0);
|
|
atomic_set(&root->log_batch, 0);
|
|
atomic_set(&root->orphan_inodes, 0);
|
|
atomic_set(&root->orphan_inodes, 0);
|
|
- atomic_set(&root->refs, 1);
|
|
|
|
|
|
+ refcount_set(&root->refs, 1);
|
|
atomic_set(&root->will_be_snapshoted, 0);
|
|
atomic_set(&root->will_be_snapshoted, 0);
|
|
atomic64_set(&root->qgroup_meta_rsv, 0);
|
|
atomic64_set(&root->qgroup_meta_rsv, 0);
|
|
root->log_transid = 0;
|
|
root->log_transid = 0;
|