public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] md/raid1: fix build breakage
@ 2009-04-06 21:35 Alexander Beregalov
  2009-04-07  5:44 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2009-04-06 21:35 UTC (permalink / raw)
  To: linux-kernel, neilb, jens.axboe, torvalds

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)

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---

 drivers/md/raid1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index f2247b0..274b491 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] md/raid1: fix build breakage
  2009-04-06 21:35 [PATCH] md/raid1: fix build breakage Alexander Beregalov
@ 2009-04-07  5:44 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2009-04-07  5:44 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: linux-kernel, neilb, torvalds

On Tue, Apr 07 2009, Alexander Beregalov wrote:
> 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.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-07  5:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 21:35 [PATCH] md/raid1: fix build breakage Alexander Beregalov
2009-04-07  5:44 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox