summaryrefslogtreecommitdiff
path: root/inode-map.c
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-09-04 11:09:23 +0800
committerDavid Sterba <dsterba@suse.cz>2014-09-14 19:06:12 +0200
commit0f500df7b60ae435e4d30c431b4b25a5120c78a3 (patch)
treeb3659589bca52fca600169b7504e9f88cfcbaa72 /inode-map.c
parent6a47725a6fb8a463dd60611800222c7297195588 (diff)
btrfs-progs: remove btrfs_release_path before btrfs_free_path
The btrfs_free_path calls btrfs_release_path internally. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'inode-map.c')
-rw-r--r--inode-map.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/inode-map.c b/inode-map.c
index 3e138b53..1321bfb3 100644
--- a/inode-map.c
+++ b/inode-map.c
@@ -90,12 +90,10 @@ int btrfs_find_free_objectid(struct btrfs_trans_handle *trans,
// FIXME -ENOSPC
found:
root->last_inode_alloc = *objectid;
- btrfs_release_path(path);
btrfs_free_path(path);
BUG_ON(*objectid < search_start);
return 0;
error:
- btrfs_release_path(path);
btrfs_free_path(path);
return ret;
}