]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: fix return value of rdev_size_change()
authorJustin Maggard <jmaggard10@gmail.com>
Wed, 24 Nov 2010 05:36:17 +0000 (16:36 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:26:46 +0000 (13:26 -0800)
commit7b17b8b11b62228a043deb8fe4672dd5e72a8701
tree307623d389972383b0c576dbcb1c582976af5334
parent6ca3509bf488faa1925a9a4f8451298bbb0ba722
md: fix return value of rdev_size_change()

commit c26a44ed1e552aaa1d4ceb71842002d235fe98d7 upstream.

When trying to grow an array by enlarging component devices,
rdev_size_store() expects the return value of rdev_size_change() to be
in sectors, but the actual value is returned in KBs.

This functionality was broken by commit
     dd8ac336c13fd8afdb082ebacb1cddd5cf727889
so this patch is suitable for any kernel since 2.6.30.

Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/md.c