diff options
| author | Logan Gunthorpe <[email protected]> | 2022-06-16 13:19:32 -0600 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-08-02 17:14:40 -0600 |
| commit | a8bb304ca5b8c833d4874b322a6ef993bec98780 (patch) | |
| tree | cfcc870a9ec98a2536ba76b0b093ab28f539db04 /scripts/stackusage | |
| parent | 6e3f50d30af847bebce072182bd735e90a294c6a (diff) | |
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 <[email protected]>
Signed-off-by: Logan Gunthorpe <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions