Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2012-04-13 17:53:16 +0200
committerJiri Kosina <jkosina@suse.cz>2012-04-17 12:27:57 +0200
commit277f3c8439522eb38619b11b7141bbe261900a5f (patch)
treebc00b89043aa9add28a2d2798b49f126389c47b5
parent57d406766e3a4a2cbd0ec73bdab93891cbcbae7a (diff)
- patches.suse/btrfs-8061-handle-errors-from-read_tree_block.patch:rpm-3.0.26-0.7
fix broken condition (bnc#756821) suse-commit: 3829766176e350799927800b899778b0335060ce
-rw-r--r--fs/btrfs/relocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 5f2ded6e6aa3..922e6ec23c7c 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -1910,7 +1910,7 @@ int walk_down_reloc_tree(struct btrfs_root *root, struct btrfs_path *path,
bytenr = btrfs_node_blockptr(eb, path->slots[i]);
blocksize = btrfs_level_size(root, i - 1);
eb = read_tree_block(root, bytenr, blocksize, ptr_gen);
- BUG_ON(eb);
+ BUG_ON(!eb);
BUG_ON(btrfs_header_level(eb) != i - 1);
path->nodes[i - 1] = eb;
path->slots[i - 1] = 0;