diff options
author | 2011-01-14 09:14:34 +1100 | |
---|---|---|
committer | 2011-01-14 09:14:34 +1100 | |
commit | 13ae864bc86ff65547ffe7e966b6433a0d0edb8a (patch) | |
tree | 6e5ca3a6736b75fa0db8415c1e3a2506af6ab9cc /include/linux/kernel_stat.h | |
parent | md: allow suspend_lo and suspend_hi to decrease as well as increase. (diff) | |
download | wireguard-linux-13ae864bc86ff65547ffe7e966b6433a0d0edb8a.tar.xz wireguard-linux-13ae864bc86ff65547ffe7e966b6433a0d0edb8a.zip |
md: fix sync_completed reporting for very large drives (>2TB)
The values exported in the sync_completed file are unsigned long, which
overflows with very large drives, resulting in wrong values reported.
Since sync_completed uses sectors as unit, we'll start getting wrong
values with components larger than 2TB.
This patch simply replaces the use of unsigned long by unsigned long long.
Signed-off-by: Rémi Rérolle <rrerolle@lacie.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'include/linux/kernel_stat.h')
0 files changed, 0 insertions, 0 deletions