summaryrefslogtreecommitdiff
path: root/mm/internal.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-08-18 01:56:59 (GMT)
committerNeilBrown <neilb@suse.de>2010-08-18 02:04:32 (GMT)
commit6b9656205469269c050963c71fca1998b247a560 (patch)
tree9d090d2e363d269cdc55549213025d86af8ef70a /mm/internal.h
parente6ffbcb6cd0ac471223df24ae77eb486c1ee68cc (diff)
downloadlinux-fsl-qoriq-6b9656205469269c050963c71fca1998b247a560.tar.xz
md: provide appropriate return value for spare_active functions.
md_check_recovery expects ->spare_active to return 'true' if any spares were activated, but none of them do, so the consequent change in 'degraded' is not notified through sysfs. So count the number of spares activated, subtract it from 'degraded' just once, and return it. Reported-by: Adrian Drzewiecki <adriand@vmware.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mm/internal.h')
0 files changed, 0 insertions, 0 deletions