Tsutomu Itoh
2011-Apr-28 09:18 UTC
[PATCH] Btrfs: check return value of btrfs_inc_extent_ref()
If return value of btrfs_inc_extent_ref() is not 0, BUG() is called.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
---
fs/btrfs/tree-log.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index f997ec0..23fb42d 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -590,6 +590,7 @@ static noinline int replay_one_extent(struct
btrfs_trans_handle *trans,
ins.objectid, ins.offset,
0, root->root_key.objectid,
key->objectid, offset);
+ BUG_ON(ret);
} else {
/*
* insert the extent pointer in the extent
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Maybe Matching Threads
- [PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
- [PATCH 03/12] Btrfs: Rewrite btrfs_drop_extents
- [PATCH] Btrfs: cleanup some BUG_ON()
- [PATCH 1/2] btrfs-progs: mixed back ref support
- [PATCH] Btrfs: fix error check of btrfs_lookup_dentry()
