summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2022-06-16 13:19:33 -0600
committerJens Axboe <axboe@kernel.dk>2022-08-02 17:14:40 -0600
commit27fb701046c39879411ff064fb2c9ca8d02d89df (patch)
tree5d9d8ef651bec9b5b57752da7e07e5e779d984db /include/linux
parenta8bb304ca5b8c833d4874b322a6ef993bec98780 (diff)
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 'include/linux')
0 files changed, 0 insertions, 0 deletions