diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 01e8451c47d5bd05129d26ac0713e3dcf550acc9..55955bd424d7083c9d142092b5f18605220baa26 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -1190,13 +1190,10 @@ static int __btrfs_wait_cache_io(struct btrfs_root *root, if (ret) { invalidate_inode_pages2(inode->i_mapping); BTRFS_I(inode)->generation = 0; - if (block_group) { -#ifdef CONFIG_BTRFS_DEBUG - btrfs_err(root->fs_info, + if (block_group) + btrfs_debug(root->fs_info, "failed to write free space cache for block group %llu error %d", block_group->start, ret); -#endif - } } btrfs_update_inode(trans, root, inode); @@ -1415,11 +1412,9 @@ int btrfs_write_out_cache(struct btrfs_trans_handle *trans, ret = __btrfs_write_out_cache(fs_info->tree_root, inode, ctl, block_group, &block_group->io_ctl, trans); if (ret) { -#ifdef CONFIG_BTRFS_DEBUG - btrfs_err(fs_info, + btrfs_debug(fs_info, "failed to write free space cache for block group %llu error %d", block_group->start, ret); -#endif spin_lock(&block_group->lock); block_group->disk_cache_state = BTRFS_DC_ERROR; spin_unlock(&block_group->lock); @@ -3995,11 +3990,9 @@ int btrfs_write_out_ino_cache(struct btrfs_root *root, if (release_metadata) btrfs_delalloc_release_metadata(BTRFS_I(inode), inode->i_size, true); -#ifdef CONFIG_BTRFS_DEBUG - btrfs_err(fs_info, + btrfs_debug(fs_info, "failed to write free ino cache for root %llu error %d", root->root_key.objectid, ret); -#endif } return ret;