mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
bcache: do not check if debug dentry is ERR or NULL explicitly on remove
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 <[email protected]> Signed-off-by: Coly Li <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
d2f96f487f
commit
ae17102316
2 changed files with 2 additions and 4 deletions
|
|
@ -249,8 +249,7 @@ void bch_debug_init_cache_set(struct cache_set *c)
|
|||
|
||||
void bch_debug_exit(void)
|
||||
{
|
||||
if (!IS_ERR_OR_NULL(bcache_debug))
|
||||
debugfs_remove_recursive(bcache_debug);
|
||||
debugfs_remove_recursive(bcache_debug);
|
||||
}
|
||||
|
||||
void __init bch_debug_init(void)
|
||||
|
|
|
|||
|
|
@ -1510,8 +1510,7 @@ static void cache_set_free(struct closure *cl)
|
|||
struct cache *ca;
|
||||
unsigned int i;
|
||||
|
||||
if (!IS_ERR_OR_NULL(c->debug))
|
||||
debugfs_remove(c->debug);
|
||||
debugfs_remove(c->debug);
|
||||
|
||||
bch_open_buckets_free(c);
|
||||
bch_btree_cache_free(c);
|
||||
|
|
|
|||
Loading…
Reference in a new issue