md/raid1: split out two sub-functions from sync_request_write
authorNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:40:44 +0000 (14:40 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:40:44 +0000 (14:40 +1000)
commita68e58703575b9c03d610a818e0241564fc17f68
treef60a433b20a4e297d010a23775e78493687c160b
parent6f8d0c77cef5849433dd7beb0bd97e573cc4a6a3
md/raid1: split out two sub-functions from sync_request_write

sync_request_write is too big and too deep.
So split out two self-contains bits of functionality into separate
function.

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