Re: [PATCH v3 1/2] zonefs: add zone-capacity support

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

 



On 20/07/2020 14:34, Damien Le Moal wrote:
[...]
>> +				zone->capacity += next->capacity;
>>  				if (next->cond == BLK_ZONE_COND_READONLY &&
>>  				    zone->cond != BLK_ZONE_COND_OFFLINE)
>>  					zone->cond = BLK_ZONE_COND_READONLY;
>>  				else if (next->cond == BLK_ZONE_COND_OFFLINE)
>>  					zone->cond = BLK_ZONE_COND_OFFLINE;
>>  			}
>> +			if (zone->capacity != zone->len) {
>> +				zonefs_err(sb, "Invalid conventional zone capacity\n");
>> +				ret = -EINVAL;
> 
> Need "goto free;" here. Forgot it too in the code snippet I sent..
> 

Oh right sorry for missing it.




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux