]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: change read_balance to return an rdev
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:54 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:54 +0000 (10:17 +1100)
commit3d66f2441c9ffcae14bc9aa4708b7714de97a287
tree822e95ed42ca9d1526964b3d06ef66ec4edd0ab9
parente3fca18eb18582bbbaa5b7cca005309382d79ac1
md/raid10:  change read_balance to return an rdev

It makes more sense to return an rdev than just an index as
read_balance() gets a reference to the rdev and so returning
the pointer make this more idiomatic.

This will be needed in a future patch when we might return
a 'replacement' rdev instead of the main rdev.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c