md: Fix rdev_size_store with size == 0
commit72da00bb9053a46e338496def4225febb5137ed3
authorChris Webb <chris@arachsys.com>
Thu, 16 Oct 2008 19:05:16 +0000 (16 19:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 21:21:08 +0000 (22 14:21 -0700)
treebf6162d6edd285ad54a01dcf70dd873d702b4922
parentf76f2408cccf448917c8a2a2b775571fd60aee30
md: Fix rdev_size_store with size == 0

commit 7d3c6f8717ee6c2bf6cba5fa0bda3b28fbda6015 upstream

Fix rdev_size_store with size == 0.
size == 0 means to use the largest size allowed by the
underlying device and is used when modifying an active array.

This fixes a regression introduced by
 commit d7027458d68b2f1752a28016dcf2ffd0a7e8f567

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/md.c