commit | c26a44ed1e552aaa1d4ceb71842002d235fe98d7 | [log] [tgz] |
---|---|---|
author | Justin Maggard <jmaggard10@gmail.com> | Wed Nov 24 16:36:17 2010 +1100 |
committer | NeilBrown <neilb@suse.de> | Wed Nov 24 16:36:17 2010 +1100 |
tree | 47e0d62c2693ae60ae7a5bc44c2dfcd6a2f7e47e | |
parent | 3561d43fd289f590fdae672e5eb831b8d5cf0bf6 [diff] |
md: fix return value of rdev_size_change() 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. Cc: stable@kernel.org Signed-off-by: Justin Maggard <jmaggard10@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>