md/raid5: need_this_block: start simplifying the last two conditions.
authorNeilBrown <neilb@suse.de>
Mon, 2 Feb 2015 00:49:10 +0000 (11:49 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 3 Feb 2015 21:35:51 +0000 (08:35 +1100)
commita9d56950f763fa3e9d831541e62d223197d2ff60
tree10e6bf867b7a1c9faf93e6d801610a3a4be8fbae
parenta79cfe12c619aa0fc401f9148d78faa6fc61a331
md/raid5: need_this_block: start simplifying the last two conditions.

Both the last two cases are only relevant if something has failed and
something needs to be written (but not over-written), and if it is OK
to pre-read blocks at this point.  So factor out those tests and
explain them.

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