From 50dcf9a5b4963ff3fbaf77ac2044f01986422dc2 Mon Sep 17 00:00:00 2001 From: Miao Xie Date: Tue, 21 Aug 2012 14:16:27 +0800 Subject: Btrfs-progs: fix wrong return value of check_owner_ref() If we find the block by seach corresponding fs tree, we should return 0, and tell the caller we pass the check. Signed-off-by: Miao Xie --- btrfsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrfsck.c b/btrfsck.c index 918d1540..67f4a9dd 100644 --- a/btrfsck.c +++ b/btrfsck.c @@ -1954,7 +1954,7 @@ static int check_owner_ref(struct btrfs_root *root, if (buf->start == btrfs_node_blockptr(path.nodes[level + 1], path.slots[level + 1])) - rec->owner_ref_checked = 1; + found = 1; btrfs_release_path(ref_root, &path); return found ? 0 : 1; -- cgit v1.2.3