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>
This commit is contained in:
parent
6a47725a6f
commit
0f500df7b6
|
@ -628,7 +628,6 @@ struct btrfs_root *btrfs_read_fs_root_no_cache(struct btrfs_fs_info *fs_info,
|
||||||
memcpy(&root->root_key, location, sizeof(*location));
|
memcpy(&root->root_key, location, sizeof(*location));
|
||||||
ret = 0;
|
ret = 0;
|
||||||
out:
|
out:
|
||||||
btrfs_release_path(path);
|
|
||||||
btrfs_free_path(path);
|
btrfs_free_path(path);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
free(root);
|
free(root);
|
||||||
|
|
|
@ -306,7 +306,6 @@ found:
|
||||||
csum_size);
|
csum_size);
|
||||||
btrfs_mark_buffer_dirty(path->nodes[0]);
|
btrfs_mark_buffer_dirty(path->nodes[0]);
|
||||||
fail:
|
fail:
|
||||||
btrfs_release_path(path);
|
|
||||||
btrfs_free_path(path);
|
btrfs_free_path(path);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,12 +90,10 @@ int btrfs_find_free_objectid(struct btrfs_trans_handle *trans,
|
||||||
// FIXME -ENOSPC
|
// FIXME -ENOSPC
|
||||||
found:
|
found:
|
||||||
root->last_inode_alloc = *objectid;
|
root->last_inode_alloc = *objectid;
|
||||||
btrfs_release_path(path);
|
|
||||||
btrfs_free_path(path);
|
btrfs_free_path(path);
|
||||||
BUG_ON(*objectid < search_start);
|
BUG_ON(*objectid < search_start);
|
||||||
return 0;
|
return 0;
|
||||||
error:
|
error:
|
||||||
btrfs_release_path(path);
|
|
||||||
btrfs_free_path(path);
|
btrfs_free_path(path);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue