mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 03:47:43 +00:00
md: do not count journal as spare in GET_ARRAY_INFO
GET_ARRAY_INFO counts journal as spare (spare_disks), which is not accurate. This patch fixes this. Reported-by: Yi Zhang <yizhan@redhat.com> Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com>
This commit is contained in:
parent
11367799f3
commit
b347af816a
@ -5851,6 +5851,9 @@ static int get_array_info(struct mddev *mddev, void __user *arg)
|
||||
working++;
|
||||
if (test_bit(In_sync, &rdev->flags))
|
||||
insync++;
|
||||
else if (test_bit(Journal, &rdev->flags))
|
||||
/* TODO: add journal count to md_u.h */
|
||||
;
|
||||
else
|
||||
spare++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user