]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: remove condition test from check_break_stripe_batch_list.
authorNeilBrown <neilb@suse.de>
Thu, 21 May 2015 01:50:16 +0000 (11:50 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 May 2015 01:36:06 +0000 (11:36 +1000)
commitfc959de4f747c2bd249491da0839265bdfb7e028
treea02289e88db74dfc3f750bbd43e7303cffd5383f
parentcf36872b3e69666a42ae1dd8326c64940aeb5125
md/raid5: remove condition test from check_break_stripe_batch_list.

handle_stripe_clean_event() contains a chunk of code very
similar to check_break_stripe_batch_list().
If we make the latter more like the former, we can end up
with just one copy of this code.

This  first step removed the condition (and the 'check_') part
of the name.  This has the added advantage of making it clear
what check is being performed at the point where the function is
called.

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