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

From: Parag Warudkar
Date: Mon Apr 06 2009 - 18:17:26 EST


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 <parag.lkml@xxxxxxxxx>

--- 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/