Skip to contentSkip to conversation

btfs: remove btrfs_dev_stat_print_on_error

PATCH In review Christoph Hellwig 3 participants 3 messages Jul 18, 2022 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btfs: remove btrfs_dev_stat_print_on_error

Just fold it into the only caller instead.

---
 fs/btrfs/volumes.c | 5 -----
 1 file changed, 5 deletions(-)
fs/btrfs/volumes.c +0 -5
index d98dc78f83af5..a02a6d0754906 100644
@@ -256,7 +256,6 @@ out_overflow:;
 
 static int init_first_rw_device(struct btrfs_trans_handle *trans);
 static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info);
-static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
 static int __btrfs_map_block(struct btrfs_fs_info *fs_info,
 			     enum btrfs_map_op op, u64 logical, u64 *length,
@@ -8287,11 +8286,7 @@ int btrfs_run_dev_stats(struct btrfs_trans_handle *trans)
 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index)
 {
 	btrfs_dev_stat_inc(dev, index);
-	btrfs_dev_stat_print_on_error(dev);
-}
 
-static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev)
-{
 	if (!dev->dev_stats_valid)
 		return;
 	btrfs_err_rl_in_rcu(dev->fs_info,
Signature · 1 line
2.30.2