Skip to contentSkip to conversation

md/raid1: fix build breakage

PATCH In review Alexander Beregalov 2 participants 2 messages Apr 6, 2009 – Apr 7, 2009 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md/raid1: fix build breakage

Fix this build error:
drivers/md/raid1.c: In function 'raid1_congested':
drivers/md/raid1.c:589: error: 'BDI_write_congested' undeclared

BDI_write_congested was changed in 1faa16d2
(block: change the request allocation/congestion logic to be sync/async based)

---

 drivers/md/raid1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/md/raid1.c +1 -1
index f2247b0..274b491 100644
@@ -586,7 +586,7 @@ static int raid1_congested(void *data, int bits)
 			/* Note the '|| 1' - when read_balance prefers
 			 * non-congested targets, it can be removed
 			 */
-			if ((bits & (1<<BDI_write_congested)) || 1)
+			if ((bits & (1<<BDI_async_congested)) || 1)
 				ret |= bdi_congested(&q->backing_dev_info, bits);
 			else
 				ret &= bdi_congested(&q->backing_dev_info, bits);
#1 lore raw
Quoted 7 lines · Alexander Beregalov

Fix this build error:
drivers/md/raid1.c: In function 'raid1_congested':
drivers/md/raid1.c:589: error: 'BDI_write_congested' undeclared

BDI_write_congested was changed in 1faa16d2
(block: change the request allocation/congestion logic to be sync/async based)

Strange, I was so sure I had grepped for those. Thanks for the quick-fix, I see Linus already added it.

Signature · 1 line
Jens Axboe