btrfs: convert btrfs_transaction.use_count from atomic_t to refcount_t
[linux-2.6-block.git] / fs / btrfs / extent-tree.c
index be5477676cc829e4efe89349fc9b7df540fd0dff..85e51f311b57528579a32a74f0bf92d4b8b760ec 100644 (file)
@@ -10850,7 +10850,7 @@ static int btrfs_trim_free_extents(struct btrfs_device *device,
                spin_lock(&fs_info->trans_lock);
                trans = fs_info->running_transaction;
                if (trans)
-                       atomic_inc(&trans->use_count);
+                       refcount_inc(&trans->use_count);
                spin_unlock(&fs_info->trans_lock);
 
                ret = find_free_dev_extent_start(trans, device, minlen, start,