summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2011-04-28 09:18:21 +0000
committerChris Mason <chris.mason@oracle.com>2011-05-23 13:24:40 -0400
commit37daa4f968e9470ae9f30e246a5781717c598271 (patch)
treea9b7366069150ab3f8e5bc85c475c6194c5fabdf /fs
parentc00e9493f1412621c8665a707d63e32b0768f572 (diff)
downloadlinux-3.10-37daa4f968e9470ae9f30e246a5781717c598271.tar.gz
linux-3.10-37daa4f968e9470ae9f30e246a5781717c598271.tar.bz2
linux-3.10-37daa4f968e9470ae9f30e246a5781717c598271.zip
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> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/tree-log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 46b7b57650a..c2d88756640 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -589,6 +589,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