]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
md: Fix rdev_size_store with size == 0
authorChris Webb <chris@arachsys.com>
Mon, 13 Oct 2008 00:55:11 +0000 (11:55 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 13 Oct 2008 00:55:11 +0000 (11:55 +1100)
commit7d3c6f8717ee6c2bf6cba5fa0bda3b28fbda6015
tree118b13de811d5eca3e6e3e6410c667ca9cbba607
parentfd048088306656824958e7783ffcee27e241b361
md: Fix rdev_size_store with size == 0

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

Cc: <stable@kernel.org>
Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c