Displaying 1 result from an estimated 1 matches for "found_back_ref".
2013 Jun 04
0
[PATCH] Btrfs-progs: fix incorrect root backref errors in fsck
...if (item_type == BTRFS_ROOT_REF_KEY) {
if (backref->found_forward_ref)
backref->errors |= REF_ERR_DUP_ROOT_REF;
+ else if (backref->found_dir_item)
+ rec->found_ref++;
backref->found_forward_ref = 1;
} else if (item_type == BTRFS_ROOT_BACKREF_KEY) {
if (backref->found_back_ref)
@@ -1524,6 +1526,8 @@ static int add_root_backref(struct cache_tree *root_cache,
BUG_ON(1);
}
+ if (backref->found_forward_ref && backref->found_dir_item)
+ backref->reachable = 1;
return 0;
}
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscr...