aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-04-23 11:08:33 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:55:04 -0400
commit5ec8dca7617b77afb0e3c7e6271089172b498546 (patch)
tree5507209c2c3f985579f9bf991ca0e9073cda1498 /fs/btrfs
parentfb7669b5a0695922a9813bb103303db3d7c79c8d (diff)
Btrfs: don't try and free ebs twice in log replay
This work is done by btrfs_free_path() anyway so there's no need for this duplicate work. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/tree-log.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 52287ec2a4d2..1fdc221a9c0b 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -2161,7 +2161,6 @@ static int walk_log_tree(struct btrfs_trans_handle *trans,
2161 int wret; 2161 int wret;
2162 int level; 2162 int level;
2163 struct btrfs_path *path; 2163 struct btrfs_path *path;
2164 int i;
2165 int orig_level; 2164 int orig_level;
2166 2165
2167 path = btrfs_alloc_path(); 2166 path = btrfs_alloc_path();
@@ -2218,12 +2217,6 @@ static int walk_log_tree(struct btrfs_trans_handle *trans,
2218 } 2217 }
2219 2218
2220out: 2219out:
2221 for (i = 0; i <= orig_level; i++) {
2222 if (path->nodes[i]) {
2223 free_extent_buffer(path->nodes[i]);
2224 path->nodes[i] = NULL;
2225 }
2226 }
2227 btrfs_free_path(path); 2220 btrfs_free_path(path);
2228 return ret; 2221 return ret;
2229} 2222}