btfs: remove btrfs_dev_stat_print_on_error
PATCH 1/1 btfs: remove btrfs_dev_stat_print_on_error
Just fold it into the only caller instead.
Signed-off-by Christoph Hellwig <[email protected]>
--- fs/btrfs/volumes.c | 5 ----- 1 file changed, 5 deletions(-)
fs/btrfs/volumes.c +0 -5
@@ -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
Quoted 3 lines · Christoph Hellwig
Just fold it into the only caller instead.
Signed-off-by Christoph Hellwig <[email protected]>
Reviewed-by Nikolay Borisov <[email protected]>
Quoted 3 lines · Christoph Hellwig
Just fold it into the only caller instead.
Signed-off-by Christoph Hellwig <[email protected]>
Added to misc-next, thanks.