]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: call break_stripe_batch_list from handle_stripe_clean_event
authorNeilBrown <neilb@suse.de>
Thu, 21 May 2015 02:56:41 +0000 (12:56 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 May 2015 01:47:02 +0000 (11:47 +1000)
commiteb9d6f29f633acebc7af2c30776a0fbbc3ee3206
tree9e54ff777051ffa494d7e34349c8a079be5052c4
parent2b83b371714dddce6d3233685d26de477461a52b
md/raid5: call break_stripe_batch_list from handle_stripe_clean_event

Now that the code in break_stripe_batch_list() is nearly identical
to the end of handle_stripe_clean_event, replace the later
with a function call.

The only remaining difference of any interest is the masking that is
applieds to dev[i].flags copied from head_sh.
R5_WriteError certainly isn't wanted as it is set per-stripe, not
per-patch.  R5_Overlap isn't wanted as it is explicitly handled.

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