]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: introduce EFSCORRUPTED and more logs
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 14 Aug 2019 10:37:03 +0000 (18:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2019 12:24:30 +0000 (14:24 +0200)
commit27bba91d3cd03d0c147e35b619fe8a259651762c
treec2f8f140cf5d0c1061c9c0e0cd65a46ebe2086ba
parent544940e1f04016f3572af2a1132f3c9e5bf775b0
staging: erofs: introduce EFSCORRUPTED and more logs

Previously, EROFS uses EIO to indicate that filesystem
is corrupted as well. However, as Pavel said [1], other
filesystems tend to use EUCLEAN(EFSCORRUPTED) instead,
let's follow what others do right now.

Also, add some more prints to the syslog.

[1] https://lore.kernel.org/lkml/20190813114821.GB11559@amd/

Suggested-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190814103705.60698-1-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/data.c
drivers/staging/erofs/dir.c
drivers/staging/erofs/inode.c
drivers/staging/erofs/internal.h
drivers/staging/erofs/namei.c
drivers/staging/erofs/xattr.c
drivers/staging/erofs/zmap.c