erofs: using switch-case while checking the inode type.
authorPratik Shinde <pratikshinde320@gmail.com>
Fri, 30 Aug 2019 09:56:15 +0000 (15:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 06:31:54 +0000 (08:31 +0200)
commit512f9922eeb1e5b0b1e099fd56829e1dad993437
treec02079f727c82463fd2c92a07425364799fb7f54
parent3b531807e605bfa8290531a63886d1972809e310
erofs: using switch-case while checking the inode type.

while filling the linux inode, using switch-case statement to check
the type of inode.
switch-case statement looks more clean here.

Signed-off-by: Pratik Shinde <pratikshinde320@gmail.com>
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190830095615.10995-1-pratikshinde320@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/erofs/inode.c