From 9a6930e9bedb930ac44e540ef7f5633b61d270c2 Mon Sep 17 00:00:00 2001 From: Yan Zheng Date: Wed, 7 Jan 2009 14:57:12 -0500 Subject: Add semantic checks to btrfsck for files and directories This patch makes btrfsck check more things, including directory items, file extents, checksumming, inode link counts etc. The code for these checks is similar to the code verifies extent back references. The main difference is that shared tree blocks are treated specially. The partial checking results(unresolved references and/or errors) of shared sub-trees are cached. This avoids scanning the shared blocks several times. Thank you, Signed-off-by: Yan Zheng --- ctree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctree.c') diff --git a/ctree.c b/ctree.c index f4829c8b..0c029a8c 100644 --- a/ctree.c +++ b/ctree.c @@ -62,7 +62,7 @@ void btrfs_release_path(struct btrfs_root *root, struct btrfs_path *p) int i; for (i = 0; i < BTRFS_MAX_LEVEL; i++) { if (!p->nodes[i]) - break; + continue; free_extent_buffer(p->nodes[i]); } memset(p, 0, sizeof(*p)); -- cgit v1.2.3