staging: erofs: introduce error injection infrastructure
authorChao Yu <yuchao0@huawei.com>
Thu, 26 Jul 2018 12:21:54 +0000 (20:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2018 15:24:08 +0000 (17:24 +0200)
commit9c07b3b39dc7720a9427e5561cc730fa28b92cc2
treefea06cc42e41badecf143a3bc620d29747a12bf1
parentd5beb31b6b1c0a3f7b30611c6d4b888f8d4137dd
staging: erofs: introduce error injection infrastructure

This patch introduces error injection infrastructure, with it, we can
inject error in any kernel exported common functions which erofs used,
so that it can force erofs running into error paths, it turns out that
tests can cover real rare paths more easily to find bugs.

Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Kconfig
drivers/staging/erofs/inode.c
drivers/staging/erofs/internal.h
drivers/staging/erofs/super.c