]> git.neil.brown.name Git - LaFS.git/commitdiff
All seg_addr to report the address at the end of the cluster
authorNeilBrown <neilb@suse.de>
Sat, 5 Mar 2011 00:25:20 +0000 (11:25 +1100)
committerNeilBrown <neilb@suse.de>
Sat, 5 Mar 2011 00:25:20 +0000 (11:25 +1100)
This is needed as the first address of the next cluster.
We don't check for errors in very many places anyway so this
is won't cause and problems.

Signed-off-by: NeilBrown <neilb@suse.de>
cluster.c

index 6752673f7f995a2be230a703e1a58d0eb4f843e3..39dd9286fd56e799ecb311e1f886314385e0e482 100644 (file)
--- a/cluster.c
+++ b/cluster.c
@@ -342,7 +342,7 @@ static u64 seg_addr(struct fs *fs, struct segpos *seg)
                return (u64)-1;
        if (seg->table > seg->nxt_table ||
            (seg->table == seg->nxt_table &&
-            seg->row >= seg->nxt_row))
+            seg->row > seg->nxt_row))
                /* We have gone beyond the end of the cluster,
                 * must be bad data during roll-forward
                 */