diff options
| author | Logan Gunthorpe <logang@deltatee.com> | 2022-06-16 13:19:32 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2022-08-02 17:14:40 -0600 |
| commit | a8bb304ca5b8c833d4874b322a6ef993bec98780 (patch) | |
| tree | cfcc870a9ec98a2536ba76b0b093ab28f539db04 /tools/perf/scripts/python | |
| parent | md/raid5: Make logic blocking check consistent with logic that blocks (diff) | |
| download | linux-a8bb304ca5b8c833d4874b322a6ef993bec98780.tar.gz linux-a8bb304ca5b8c833d4874b322a6ef993bec98780.zip | |
md/raid5: Factor out ahead_of_reshape() function
There are a few uses of an ugly ternary operator in raid5_make_request()
to check if a sector is a head of a reshape sector.
Factor this out into a simple helper called ahead_of_reshape().
No functional changes intended.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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
