mirror-linux/drivers/md/bcache
Coly Li 3eba5e0b24 bcache: avoid NULL checking to c->root in run_cache_set()
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>
2023-11-20 09:17:51 -07:00
..
Kconfig bcache: move closures to lib/ 2023-10-19 14:47:33 -04:00
Makefile bcache: move closures to lib/ 2023-10-19 14:47:33 -04:00
alloc.c
bcache.h bcache: avoid oversize memory allocation by small stripe_size 2023-11-20 09:17:51 -07:00
bcache_ondisk.h flexible-array transformations for 6.3-rc1 2023-02-25 12:53:42 -08:00
bset.c
bset.h
btree.c bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc() 2023-11-20 09:17:51 -07:00
btree.h Locking changes for v6.5: 2023-06-27 14:14:30 -07:00
debug.c
debug.h
extents.c
extents.h
features.c
features.h
io.c
journal.c bcache: Silence memcpy() run-time false positive warnings 2023-01-25 12:24:50 -08:00
journal.h
movinggc.c
request.c block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
request.h
stats.c
stats.h bcache: Remove dead references to cache_readaheads 2023-06-15 07:30:11 -06:00
super.c bcache: avoid NULL checking to c->root in run_cache_set() 2023-11-20 09:17:51 -07:00
sysfs.c bcache: prevent potential division by zero error 2023-11-20 09:17:51 -07:00
sysfs.h bcache: make kobj_type structures constant 2023-06-15 07:30:11 -06:00
trace.c
util.c
util.h bcache: move closures to lib/ 2023-10-19 14:47:33 -04:00
writeback.c bcache: fixup multi-threaded bch_sectors_dirty_init() wake-up race 2023-11-20 09:17:51 -07:00
writeback.h