]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: get rid of duplicated call to bio_data_dir()
authorNamhyung Kim <namhyung@gmail.com>
Mon, 18 Jul 2011 07:38:51 +0000 (17:38 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Jul 2011 07:38:51 +0000 (17:38 +1000)
commit5cd9e4cda958bc2d1f20883c158437535d56206e
tree0ae71ae96af464f9e2edb60cdcfdc32e5cd92388
parent2020e5691cce160ea419d4b756271c087e02e202
md/raid5: get rid of duplicated call to bio_data_dir()

In raid5::make_request(), once bio_data_dir(@bi) is detected
it never (and couldn't) be changed. Use the result always.

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