diff options
| author | Logan Gunthorpe <[email protected]> | 2022-06-08 10:27:54 -0600 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-08-02 17:14:40 -0600 |
| commit | eac58d08d4937d2eab8f71c663d98d0759845bde (patch) | |
| tree | be424e94edc28059f85fb1cb4bf28f321fcc7d76 /scripts/stackusage | |
| parent | 6f28c5c3128c79f628da2aee2f8128aaa3b91f22 (diff) | |
md: Use enum for overloaded magic numbers used by mddev->curr_resync
Comments in the code document special values used for
mddev->curr_resync. Make this clearer by using an enum to label these
values.
The only functional change is a couple places use the wrong comparison
operator that implied 3 is another special value. They are all
fixed to imply that 3 or greater is an active resync.
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