public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] brtfs: less- and greater than confusion
@ 2009-07-12 22:30 Roel Kluin
  2009-07-13 13:22 ` Chris Mason
  0 siblings, 1 reply; 6+ messages in thread
From: Roel Kluin @ 2009-07-12 22:30 UTC (permalink / raw)
  To: chris.mason, linux-btrfs, Andrew Morton

Without this the loop won't start

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 3ab80e9..2c873c9 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2795,7 +2795,7 @@ int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree,
 		}
 	}
 
-	for (i = 0; i > nr; i++) {
+	for (i = 0; i < nr; i++) {
 		struct btrfs_multi_bio *multi;
 		struct btrfs_bio_stripe *stripe;
 		int ret;

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

end of thread, other threads:[~2009-07-13 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-12 22:30 [PATCH] brtfs: less- and greater than confusion Roel Kluin
2009-07-13 13:22 ` Chris Mason
2009-07-13 13:26   ` Chris Mason
2009-07-13 13:57     ` Yan Zheng
2009-07-13 13:28   ` David Woodhouse
2009-07-13 13:43   ` Yan Zheng

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