Re: [PATCH v3 2/4] staging: exfat: drop duplicate date_time_t struct

2019-09-08 Thread Valentin Vidić
On Sun, Sep 08, 2019 at 07:50:31PM +0100, Greg Kroah-Hartman wrote: > Wait, how are these "duplicate"? The fields are in different order, > don't these refer to things on-disk? On-disk combines the values from these structures in a different form: offset bits DoubleSeconds 0 5

Re: [PATCH v3 2/4] staging: exfat: drop duplicate date_time_t struct

2019-09-08 Thread Valentin Vidić
On Sun, Sep 08, 2019 at 07:54:24PM +0100, Greg Kroah-Hartman wrote: > On Sun, Sep 08, 2019 at 05:35:37PM +, Valentin Vidic wrote: > > +struct timestamp_t { > > + u16 millisec; /* 0 ~ 999 */ > > You added this field to this structure, why? You did not document that > in

Re: [PATCH v3 2/4] staging: exfat: drop duplicate date_time_t struct

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 05:35:37PM +, Valentin Vidic wrote: > Use timestamp_t for everything and cleanup duplicate code. > > Signed-off-by: Valentin Vidic > --- > drivers/staging/exfat/exfat.h | 35 +++--- > drivers/staging/exfat/exfat_super.c | 158 > 2

Re: [PATCH v3 2/4] staging: exfat: drop duplicate date_time_t struct

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 05:35:37PM +, Valentin Vidic wrote: > Use timestamp_t for everything and cleanup duplicate code. Wait, how are these "duplicate"? The fields are in different order, don't these refer to things on-disk? Did you test this? > -struct date_time_t { > - u16

[PATCH v3 2/4] staging: exfat: drop duplicate date_time_t struct

2019-09-08 Thread Valentin Vidic
Use timestamp_t for everything and cleanup duplicate code. Signed-off-by: Valentin Vidic --- drivers/staging/exfat/exfat.h | 35 +++--- drivers/staging/exfat/exfat_super.c | 158 2 files changed, 55 insertions(+), 138 deletions(-) diff --git