diff options
| author | Logan Gunthorpe <logang@deltatee.com> | 2022-06-16 13:19:33 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2022-08-02 17:14:40 -0600 |
| commit | 27fb701046c39879411ff064fb2c9ca8d02d89df (patch) | |
| tree | 5d9d8ef651bec9b5b57752da7e07e5e779d984db /tools/perf/scripts/python | |
| parent | md/raid5: Factor out ahead_of_reshape() function (diff) | |
| download | linux-27fb701046c39879411ff064fb2c9ca8d02d89df.tar.gz linux-27fb701046c39879411ff064fb2c9ca8d02d89df.zip | |
md/raid5: Refactor raid5_make_request loop
Break immediately if raid5_get_active_stripe() returns NULL and deindent
the rest of the loop. Annotate this check with an unlikely().
This makes the code easier to read and reduces the indentation level.
No functional changes intended.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
