Skip to content

Commit d28beb3

Browse files
Christoph Hellwigkdave
authored andcommitted
btrfs: merge btrfs_dev_stat_print_on_error with its only caller
Fold it into the only caller. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 723df2b commit d28beb3

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

fs/btrfs/volumes.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ out_overflow:;
245245

246246
static int init_first_rw_device(struct btrfs_trans_handle *trans);
247247
static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info);
248-
static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
249248
static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
250249
static int __btrfs_map_block(struct btrfs_fs_info *fs_info,
251250
enum btrfs_map_op op,
@@ -7842,11 +7841,7 @@ int btrfs_run_dev_stats(struct btrfs_trans_handle *trans)
78427841
void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index)
78437842
{
78447843
btrfs_dev_stat_inc(dev, index);
7845-
btrfs_dev_stat_print_on_error(dev);
7846-
}
78477844

7848-
static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev)
7849-
{
78507845
if (!dev->dev_stats_valid)
78517846
return;
78527847
btrfs_err_rl_in_rcu(dev->fs_info,

0 commit comments

Comments
 (0)