diff mbox

[2/5] lightnvm: pblk: Remove resv field for sec meta

Message ID 20180615222706.3801-3-igor.j.konopko@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Igor Konopko June 15, 2018, 10:27 p.m. UTC
Since we have flexible size of pblk_sec_meta
which depends on drive metadata size we can
remove not needed reserved field from that
structure

Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
---
 drivers/lightnvm/pblk.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Matias Bjorling June 16, 2018, 7:27 p.m. UTC | #1
On 06/16/2018 12:27 AM, Igor Konopko wrote:
> Since we have flexible size of pblk_sec_meta
> which depends on drive metadata size we can
> remove not needed reserved field from that
> structure
> 
> Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
> ---
>   drivers/lightnvm/pblk.h | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
> index f82c3a0b0de5..27658dc6fc1a 100644
> --- a/drivers/lightnvm/pblk.h
> +++ b/drivers/lightnvm/pblk.h
> @@ -82,7 +82,6 @@ enum {
>   };
>   
>   struct pblk_sec_meta {
> -	u64 reserved;
>   	__le64 lba;
>   };
>   
> 

Looks good to me. Javier may have some comment on this, since it is not 
completely obvious from the code why that reserved attribute is there. I 
do like the change to go in, as it needlessly extends the requirement 
from 8 to 16bytes.
Javier Gonzalez June 18, 2018, 2:25 p.m. UTC | #2
> On 16 Jun 2018, at 21.27, Matias Bjørling <mb@lightnvm.io> wrote:
> 
> On 06/16/2018 12:27 AM, Igor Konopko wrote:
>> Since we have flexible size of pblk_sec_meta
>> which depends on drive metadata size we can
>> remove not needed reserved field from that
>> structure
>> Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
>> ---
>>  drivers/lightnvm/pblk.h | 1 -
>>  1 file changed, 1 deletion(-)
>> diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
>> index f82c3a0b0de5..27658dc6fc1a 100644
>> --- a/drivers/lightnvm/pblk.h
>> +++ b/drivers/lightnvm/pblk.h
>> @@ -82,7 +82,6 @@ enum {
>>  };
>>    struct pblk_sec_meta {
>> -	u64 reserved;
>>  	__le64 lba;
>>  };
>> 
> 
> Looks good to me. Javier may have some comment on this, since it is
> not completely obvious from the code why that reserved attribute is
> there. I do like the change to go in, as it needlessly extends the
> requirement from 8 to 16bytes.

Looks good to me. Maybe marge this patch with 1/5? It was actually a
comment I added to it.
Igor Konopko June 18, 2018, 8:50 p.m. UTC | #3
On 18.06.2018 07:25, Javier Gonzalez wrote:
>> On 16 Jun 2018, at 21.27, Matias Bjørling <mb@lightnvm.io> wrote:
>>
>> On 06/16/2018 12:27 AM, Igor Konopko wrote:
>>> Since we have flexible size of pblk_sec_meta
>>> which depends on drive metadata size we can
>>> remove not needed reserved field from that
>>> structure
>>> Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
>>> ---
>>>   drivers/lightnvm/pblk.h | 1 -
>>>   1 file changed, 1 deletion(-)
>>> diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
>>> index f82c3a0b0de5..27658dc6fc1a 100644
>>> --- a/drivers/lightnvm/pblk.h
>>> +++ b/drivers/lightnvm/pblk.h
>>> @@ -82,7 +82,6 @@ enum {
>>>   };
>>>     struct pblk_sec_meta {
>>> -	u64 reserved;
>>>   	__le64 lba;
>>>   };
>>>
>>
>> Looks good to me. Javier may have some comment on this, since it is
>> not completely obvious from the code why that reserved attribute is
>> there. I do like the change to go in, as it needlessly extends the
>> requirement from 8 to 16bytes.
> 
> Looks good to me. Maybe marge this patch with 1/5? It was actually a
> comment I added to it.
> 

Sure, can merge it.

Igor
diff mbox

Patch

diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
index f82c3a0b0de5..27658dc6fc1a 100644
--- a/drivers/lightnvm/pblk.h
+++ b/drivers/lightnvm/pblk.h
@@ -82,7 +82,6 @@  enum {
 };
 
 struct pblk_sec_meta {
-	u64 reserved;
 	__le64 lba;
 };