summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/extent-tree.c1
-rw-r--r--fs/btrfs/transaction.c1
-rw-r--r--fs/btrfs/transaction.h1
3 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 7b65d5349b91..7e9ba2f76ac9 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -6431,7 +6431,6 @@ static int update_block_group(struct btrfs_trans_handle *trans,
6431 if (list_empty(&cache->dirty_list)) { 6431 if (list_empty(&cache->dirty_list)) {
6432 list_add_tail(&cache->dirty_list, 6432 list_add_tail(&cache->dirty_list,
6433 &trans->transaction->dirty_bgs); 6433 &trans->transaction->dirty_bgs);
6434 trans->transaction->num_dirty_bgs++;
6435 trans->delayed_ref_updates++; 6434 trans->delayed_ref_updates++;
6436 btrfs_get_block_group(cache); 6435 btrfs_get_block_group(cache);
6437 } 6436 }
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 722ebdc02453..3f6811cdf803 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -233,7 +233,6 @@ loop:
233 INIT_LIST_HEAD(&cur_trans->io_bgs); 233 INIT_LIST_HEAD(&cur_trans->io_bgs);
234 INIT_LIST_HEAD(&cur_trans->dropped_roots); 234 INIT_LIST_HEAD(&cur_trans->dropped_roots);
235 mutex_init(&cur_trans->cache_write_mutex); 235 mutex_init(&cur_trans->cache_write_mutex);
236 cur_trans->num_dirty_bgs = 0;
237 spin_lock_init(&cur_trans->dirty_bgs_lock); 236 spin_lock_init(&cur_trans->dirty_bgs_lock);
238 INIT_LIST_HEAD(&cur_trans->deleted_bgs); 237 INIT_LIST_HEAD(&cur_trans->deleted_bgs);
239 spin_lock_init(&cur_trans->dropped_roots_lock); 238 spin_lock_init(&cur_trans->dropped_roots_lock);
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h
index 4419a4a0294b..78c446c222b7 100644
--- a/fs/btrfs/transaction.h
+++ b/fs/btrfs/transaction.h
@@ -80,7 +80,6 @@ struct btrfs_transaction {
80 */ 80 */
81 struct mutex cache_write_mutex; 81 struct mutex cache_write_mutex;
82 spinlock_t dirty_bgs_lock; 82 spinlock_t dirty_bgs_lock;
83 unsigned int num_dirty_bgs;
84 /* Protected by spin lock fs_info->unused_bgs_lock. */ 83 /* Protected by spin lock fs_info->unused_bgs_lock. */
85 struct list_head deleted_bgs; 84 struct list_head deleted_bgs;
86 spinlock_t dropped_roots_lock; 85 spinlock_t dropped_roots_lock;