Skip to contentSkip to conversation

btrfsck.c typo?

PATCH New TARUISI Hiroaki 1 participant 1 message Jun 30, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfsck.c typo?

Hi,
Recently, I've red btrfsck.c of btrfs-progs to study the internal of btrfs. However, I may find typo in pick_next_pending() of btrfsck.c

The first index of bits[] which is initialized should be 0, I think.

---

btrfsck.c +1 -1
index 40c90f8..f961c9b 100644
@@ -1920,7 +1920,7 @@ static int pick_next_pending(struct cache_tree *pending,
        cache = find_first_cache_extent(reada, 0);
        if (cache) {
                bits[0].start = cache->start;
-               bits[1].size = cache->size;
+               bits[0].size = cache->size;
                *reada_bits = 1;
                return 1;
        }
Signature · 1 line
taruisi