]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: don't check special inode layout
authorYue Hu <huyue2@yulong.com>
Fri, 28 Jun 2019 03:42:34 +0000 (11:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 06:45:00 +0000 (08:45 +0200)
commit273c15c31c05e777fd28a0bfa44c0189357eecba
tree5ddfa62f9a1da9ca379271f9fdadfe6dd28b4721
parentf279eef390485680d3638c904297424ce16e0837
staging: erofs: don't check special inode layout

Currently, we will check if inode layout is compression or inline if
the inode is special in fill_inode(). Also set ->i_mapping->a_ops for
it. That is pointless since the both modes won't be set for special
inode when creating EROFS filesystem image. So, let's avoid it.

Signed-off-by: Yue Hu <huyue2@yulong.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/inode.c