]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: change read_balance to return an rdev
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:09 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:09 +0000 (11:32 +1100)
commite242333643e0599fefbe39460ba9ed6328de810a
tree319b7787bd6a0baa6af53fc1b78fc57d5b7530af
parent6447a6d027382b28c06d31a8b01ce716a25db594
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