md: do not count journal as spare in GET_ARRAY_INFO
authorSong Liu <songliubraving@fb.com>
Fri, 12 Aug 2016 00:14:45 +0000 (17:14 -0700)
committerShaohua Li <shli@fb.com>
Wed, 17 Aug 2016 01:34:15 +0000 (18:34 -0700)
commitb347af816ad2086c1dacf9f74973b82f83e877be
tree64663c861e4f6504ecd506711f11dc63af9e4eb3
parent11367799f3d12a5074c4a3c0fa4ea8da2a21a2a4
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>
drivers/md/md.c