linux-stable/drivers/md/bcache
Coly Li 02a4b14d17 bcache: avoid NULL checking to c->root in run_cache_set()
[ Upstream commit 3eba5e0b24 ]

In run_cache_set() after c->root returned from bch_btree_node_get(), it
is checked by IS_ERR_OR_NULL(). Indeed it is unncessary to check NULL
because bch_btree_node_get() will not return NULL pointer to caller.

This patch replaces IS_ERR_OR_NULL() by IS_ERR() for the above reason.

Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20231120052503.6122-11-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-20 17:00:22 +01:00
..
alloc.c
bcache.h bcache: avoid oversize memory allocation by small stripe_size 2023-12-20 17:00:22 +01:00
bcache_ondisk.h
bset.c
bset.h
btree.c bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc() 2023-12-20 17:00:22 +01:00
btree.h
closure.c
closure.h
debug.c
debug.h
extents.c
extents.h
features.c
features.h
io.c
journal.c
journal.h
Kconfig
Makefile
movinggc.c
request.c
request.h
stats.c
stats.h
super.c bcache: avoid NULL checking to c->root in run_cache_set() 2023-12-20 17:00:22 +01:00
sysfs.c bcache: prevent potential division by zero error 2023-12-03 07:32:12 +01:00
sysfs.h
trace.c
util.c
util.h
writeback.c bcache: remove redundant assignment to variable cur_idx 2023-12-20 17:00:22 +01:00
writeback.h