android_kernel_xiaomi_sm8350/drivers/md/bcache
Coly Li af509912cd bcache: avoid NULL checking to c->root in run_cache_set()
[ Upstream commit 3eba5e0b2422aec3c9e79822029599961fdcab97 ]

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 15:41:20 +01:00
..
alloc.c
bcache.h bcache: avoid oversize memory allocation by small stripe_size 2023-12-20 15:41:20 +01:00
bset.c
bset.h
btree.c bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc() 2023-12-20 15:41:20 +01:00
btree.h
closure.c
closure.h
debug.c
debug.h
extents.c
extents.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 15:41:20 +01:00
sysfs.c bcache: prevent potential division by zero error 2023-12-08 08:44:25 +01:00
sysfs.h
trace.c
util.c
util.h
writeback.c
writeback.h