]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: unite handle_stripe_dirtying5 and handle_stripe_dirtying6
authorNeilBrown <neilb@suse.de>
Wed, 27 Jul 2011 01:00:36 +0000 (11:00 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 27 Jul 2011 01:00:36 +0000 (11:00 +1000)
commit927fd1d4f8b2ee43063ec1591eab6f0f17f96e58
treee1ac80fb2151802d8a2654b5c91e06c77c0f3686
parent5f47740b787bd94004fe343a89a3956d4f497064
md/raid5: unite handle_stripe_dirtying5 and handle_stripe_dirtying6

RAID6 is only allowed to choose 'reconstruct-write' while RAID5 is
also allow 'read-modify-write'
Apart from this difference, handle_stripe_dirtying[56] are nearly
identical.  So resolve these differences and create just one function.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/raid5.c