diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-21 20:19:54 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-31 19:18:37 +0300 |
commit | d0261559c434abbd7254c9c97c68f5e024daabf4 (patch) | |
tree | 518c2c96ad3082089635f6d254bcc870bc85dfb5 | |
parent | e38356d65ed085a2c0ba056fa9048ad8845da1d0 (diff) | |
download | linux-d0261559c434abbd7254c9c97c68f5e024daabf4.tar.xz |
bcachefs: Delete duplicate time stats initialization
This code duplicated initialization already done in
bch2_fs_btree_iter_init().
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/super.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 0e85c22672be..646f67a589a4 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -960,12 +960,6 @@ int bch2_fs_start(struct bch_fs *c) bch2_dev_allocator_add(c, ca); bch2_recalc_capacity(c); - for (i = 0; i < BCH_TRANSACTIONS_NR; i++) { - mutex_lock(&c->btree_transaction_stats[i].lock); - bch2_time_stats_init(&c->btree_transaction_stats[i].lock_hold_times); - mutex_unlock(&c->btree_transaction_stats[i].lock); - } - ret = BCH_SB_INITIALIZED(c->disk_sb.sb) ? bch2_fs_recovery(c) : bch2_fs_initialize(c); |