]> 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)
commitf0f7d737d8af468b6ddf8f7cddeae5ff480dc5e5
tree9e54ff777051ffa494d7e34349c8a079be5052c4
parent083351372ee1895f1fd9e53ed0c02ca9ac1ecd61
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