From: NeilBrown Date: Sat, 5 Mar 2011 00:25:20 +0000 (+1100) Subject: All seg_addr to report the address at the end of the cluster X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=b1b642c738d3c6be6efc6cd9734e71403f018a35;p=LaFS.git All seg_addr to report the address at the end of the cluster 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 --- diff --git a/cluster.c b/cluster.c index 6752673..39dd928 100644 --- 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 */