2009-04-06 22:17:26

by Parag Warudkar

[permalink] [raw]
Subject: [PATCH] Block: Build fix for allocation/congestion changes

Hi Jens

I don't know if you have pending patches to take care of the remaining
users of BDI_{read/write}_congested - but meanwhile this patch allows me
to build today's Linus git.

Signed-off-by: Parag Warudkar <[email protected]>

--- linux-2.6/drivers/md/raid1.c 2009-04-06 17:37:25.609691615 -0400
+++ linux-2.6-wk/drivers/md/raid1.c 2009-04-06 18:10:55.058441747 -0400
@@ -586,7 +586,7 @@
/* 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);