android_kernel_asus_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: remove 'int n' from parameter list of bch_bucket_alloc_set() 2023-08-11 11:53:44 +02:00
bcache.h bcache: avoid oversize memory allocation by small stripe_size 2023-12-20 15:41:20 +01:00
bset.c bcache: allocate meta data pages as compound pages 2020-08-21 13:05:25 +02:00
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 bcache: Move journal work to new flush wq 2021-03-04 10:26:43 +01:00
journal.h
Kconfig
Makefile
movinggc.c
request.c md: bcache: check the return value of kzalloc() in detached_dev_do_request() 2022-06-14 18:11:50 +02:00
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 bcache: fix set_at_max_writeback_rate() for multiple attached devices 2022-10-26 13:22:57 +02:00
writeback.h bcache: fix overflow in offset_to_stripe() 2020-08-21 13:05:25 +02:00