diff options
author | Coly Li <[email protected]> | 2020-07-25 20:00:25 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-07-25 07:38:20 -0600 |
commit | a42d3c642cf9582e5bb633e32a07c7aff61d5311 (patch) | |
tree | 36ec7e85c90c187c2a6c1bfbb6984a43fa283e69 /lib/test_overflow.c | |
parent | c557a5f7bb2558f1386038549c289d7a20c78730 (diff) |
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 <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions