diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-05-15 09:48:18 +0200 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-18 03:40:32 +0200 |
commit | 314297c2a3fbcbda992507f70cd04cc82084e434 (patch) | |
tree | 60d554b89d19195c92bd5f6ad8924977664a10e3 | |
parent | Btrfs: pause the space balance when remounting to R/O (diff) | |
download | linux-314297c2a3fbcbda992507f70cd04cc82084e434.tar.xz linux-314297c2a3fbcbda992507f70cd04cc82084e434.zip |
Btrfs: remove BUG_ON() in btrfs_read_fs_tree_no_radix()
We have checked if ->node is NULL or not, so it is unnecessary to
use BUG_ON() to check again. Remove it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index e8b29da30154..9b9f28664b4f 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1513,7 +1513,6 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_root *tree_root, } root->commit_root = btrfs_root_node(root); - BUG_ON(!root->node); /* -ENOMEM */ out: if (location->objectid != BTRFS_TREE_LOG_OBJECTID) { root->ref_cows = 1; |