Searched hist:a42d3c642cf9582e5bb633e32a07c7aff61d5311 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/md/bcache/ |
H A D | super.c | diff a42d3c642cf9582e5bb633e32a07c7aff61d5311 Sat Jul 25 07:00:25 CDT 2020 Coly Li <colyli@suse.de> bcache: disassemble the big if() checks in bch_cache_set_alloc()
In bch_cache_set_alloc() there is a big if() checks combined by 11 items together. When this big if() statement fails, it is difficult to tell exactly which item fails indeed.
This patch disassembles this big if() checks into 11 single if() checks, which makes code debug more easier.
Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|