btrfs: add missing initialization in btrfs_check_shared
[sfrench/cifs-2.6.git] / fs / btrfs / backref.c
index f94b2d8c744a1bfee2dee175ee8f8453aa1e0e8f..26484648d0903298cbb68bff095232873e94673a 100644 (file)
@@ -1519,6 +1519,7 @@ int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr)
                if (!node)
                        break;
                bytenr = node->val;
+               shared.share_count = 0;
                cond_resched();
        }