md: replace STRIPE_OP_{BIODRAIN,PREXOR,POSTXOR} with 'reconstruct_states'
authorDan Williams <dan.j.williams@intel.com>
Fri, 27 Jun 2008 22:32:05 +0000 (08:32 +1000)
committerNeil Brown <neilb@notabene.brown>
Fri, 27 Jun 2008 22:32:05 +0000 (08:32 +1000)
commit600aa10993012ff2dd5617720dac081e4f992017
treeead3e928aaa45e68bc65ea9aedc513c5b9c3d2d6
parent976ea8d475675da6e86bd434328814ccbf5ae641
md: replace STRIPE_OP_{BIODRAIN,PREXOR,POSTXOR} with 'reconstruct_states'

From: Dan Williams <dan.j.williams@intel.com>

Track the state of reconstruct operations (recalculating the parity block
usually due to incoming writes, or as part of array expansion)  Reduces the
scope of the STRIPE_OP_{BIODRAIN,PREXOR,POSTXOR} flags to only tracking whether
a reconstruct operation has been requested via the ops_request field of struct
stripe_head_state.

This is the final step in the removal of ops.{pending,ack,complete,count}, i.e.
the STRIPE_OP_{BIODRAIN,PREXOR,POSTXOR} flags only request an operation and do
not track the state of the operation.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/raid5.c
include/linux/raid/raid5.h