Re: [PATCH] staging: erofs: using switch-case while checking the inode type.

2019-08-29 Thread Gao Xiang
Hi Dan, On Thu, Aug 29, 2019 at 11:13:53PM +0800, Gao Xiang wrote: > Hi Dan, > > On Thu, Aug 29, 2019 at 06:04:36PM +0300, Dan Carpenter wrote: > > On Thu, Aug 29, 2019 at 10:15:22PM +0800, Gao Xiang wrote: > > > I am very happy that you send a patch about this, but we have > > > to take care of

Re: [PATCH] staging: erofs: using switch-case while checking the inode type.

2019-08-29 Thread Gao Xiang
Hi Dan, On Thu, Aug 29, 2019 at 06:04:36PM +0300, Dan Carpenter wrote: > On Thu, Aug 29, 2019 at 10:15:22PM +0800, Gao Xiang wrote: > > I am very happy that you send a patch about this, but we have > > to take care of handling "fall through" properly at least, > > and I don't want to introduce

Re: [PATCH] staging: erofs: using switch-case while checking the inode type.

2019-08-29 Thread Dan Carpenter
On Thu, Aug 29, 2019 at 10:15:22PM +0800, Gao Xiang wrote: > I am very happy that you send a patch about this, but we have > to take care of handling "fall through" properly at least, > and I don't want to introduce some extra compile warnings > instead at this time. I can't apply the patch so I

Re: [PATCH] staging: erofs: using switch-case while checking the inode type.

2019-08-29 Thread Dan Carpenter
On Thu, Aug 29, 2019 at 09:56:07PM +0800, Gao Xiang wrote: > Hi Pratik, > > On Thu, Aug 29, 2019 at 06:38:13PM +0530, Pratik Shinde wrote: > > while filling the linux inode, using switch-case statement to check > > the type of inode. > > switch-case statement looks more clean. > > > >

Re: [PATCH] staging: erofs: using switch-case while checking the inode type.

2019-08-29 Thread Gao Xiang
On Thu, Aug 29, 2019 at 07:35:01PM +0530, Pratik Shinde wrote: > Hi Gao, > > Sorry I didn't pull the latest tree. I will do the necessary. > Anyways, don't you think it will be cleaner to have a switch case statement > rather than if-else statement. I think so, but that's another personal choise

Re: [PATCH] staging: erofs: using switch-case while checking the inode type.

2019-08-29 Thread Gao Xiang
Hi Pratik, On Thu, Aug 29, 2019 at 06:38:13PM +0530, Pratik Shinde wrote: > while filling the linux inode, using switch-case statement to check > the type of inode. > switch-case statement looks more clean. > > Signed-off-by: Pratik Shinde No, that is not the case, see __ext4_iget() in

[PATCH] staging: erofs: using switch-case while checking the inode type.

2019-08-29 Thread Pratik Shinde
while filling the linux inode, using switch-case statement to check the type of inode. switch-case statement looks more clean. Signed-off-by: Pratik Shinde --- drivers/staging/erofs/inode.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git