Re: Btrfs bug with g38867a2 and a question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 21, 2011 at 04:18:29PM -0400, Josef Bacik wrote:
> diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
> index b128fa0..66ba0a7 100644
> --- a/fs/btrfs/inode.c
> +++ b/fs/btrfs/inode.c
> @@ -782,7 +782,12 @@ static noinline int cow_file_range(struct inode *inode,
>  	struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree;
>  	int ret = 0;
> 
> -	BUG_ON(btrfs_is_free_space_inode(root, inode));
> +	if (btrfs_is_free_space_inode(root, inode)) {
> +		printk(KERN_ERR "trying to write to free space inode, "
> +		       "isize=%Lu, start=%Lu, end=%Lu\n", i_size_read(inode),
> +		       start, end);

please prefix printk messages with "btrfs: "

> +		BUG_ON(btrfs_is_free_space_inode(root, inode));
> +	}
>  	trans = btrfs_join_transaction(root);
>  	BUG_ON(IS_ERR(trans));
>  	trans->block_rsv = &root->fs_info->delalloc_block_rsv;
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux