OSDN Git Service

bcache: do not check if debug dentry is ERR or NULL explicitly on remove
authorShenghui Wang <shhuiw@foxmail.com>
Thu, 13 Dec 2018 14:53:47 +0000 (22:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:07 +0000 (09:20 +0100)
commit6f48e23888b92cacab7c610a6220429256b348cf
treef6789bd2fed492004125163087a46b27503b0a07
parentc318f88411a8e69891c691c07b508c4b77772e54
bcache: do not check if debug dentry is ERR or NULL explicitly on remove

[ Upstream commit ae17102316550b4b230a283febe31b2a9ff30084 ]

debugfs_remove and debugfs_remove_recursive will check if the dentry
pointer is NULL or ERR, and will do nothing in that case.

Remove the check in cache_set_free and bch_debug_init.

Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/bcache/debug.c
drivers/md/bcache/super.c