Re: [PATCH v2 07/21] btrfs: factor out gather_device_info()

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

 



On 12/02/2020 08:21, Naohiro Aota wrote:
> +	if (!(type & BTRFS_BLOCK_GROUP_TYPE_MASK)) {
> +		btrfs_err(info, "invalid chunk type 0x%llx requested", type);
> +		BUG();
> +	}

This could be

if (!(type & BTRFS_BLOCK_GROUP_TYPE_MASK)) {
	btrfs_err(info, "invalid chunk type 0x%llx requested", type);
	ASSERT(0);
	return -EINVAL;
}

as well.




[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