summaryrefslogtreecommitdiff
path: root/btrfsck.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-08-21 14:16:27 +0800
committerroot <root@localhost.localdomain>2012-10-04 16:26:31 -0400
commit50dcf9a5b4963ff3fbaf77ac2044f01986422dc2 (patch)
tree8c8f68890070b53cba53cc7fd5ae8db7163cc298 /btrfsck.c
parentf3f72863d5571cbb04ddde0416994eada776fb2a (diff)
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 <miaox@cn.fujitsu.com>
Diffstat (limited to 'btrfsck.c')
-rw-r--r--btrfsck.c2
1 files changed, 1 insertions, 1 deletions
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;