Skip to content
Commit 848b3182 authored by NeilBrown's avatar NeilBrown
Browse files

md: raid5: avoid sector values going negative when testing reshape progress.



As sector_t in unsigned, we cannot afford to let 'safepos' etc go
negative.
So replace
   a -= b;
by
   a -= min(b,a);

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent b6a9ce68
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment