search for: btrfs_free_fs_root

Displaying 4 results from an estimated 4 matches for "btrfs_free_fs_root".

2011 Aug 26
0
[PATCH] Btrfs: make some functions return void
...er.s_list); INIT_LIST_HEAD(&root->anon_super.s_instances); init_rwsem(&root->anon_super.s_umount); - - return 0; } static int find_and_setup_root(struct btrfs_root *tree_root, @@ -2412,7 +2410,7 @@ int write_ctree_super(struct btrfs_trans_handle *trans, return ret; } -int btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) +void btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) { spin_lock(&fs_info->fs_roots_radix_lock); radix_tree_delete(&fs_info->fs_roots_radix, @@ -2425,7 +2423,6 @@ int btrfs_free_fs_root(struct btr...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...ext2_image(ext2_root, ext2_fs, "image"); if (ret) { - fprintf(stderr, "failed to create fs image\n"); - goto fail; - } - ret = migrate_super_block(root, BTRFS_SUPER_INFO_OFFSET); - if (ret) { - fprintf(stderr, "failed to update super block\n"); - goto fail; - } - btrfs_free_fs_root(snap_root->fs_info, snap_root); + fprintf(stderr, "error during create_ext2_image %d\n", ret); + goto fail; + } + btrfs_free_fs_root(ext2_root->fs_info, ext2_root); ret = close_ctree(root); if (ret) { fprintf(stderr, "error during close_ctree %d\n", ret); goto...
2013 Feb 07
1
[PATCH] Btrfs: cleanup orphan reservation if truncate fails
I noticed we were getting lots of warnings with xfstest 83 because we have reservations outstanding. This is because we moved the orphan add outside of the truncate, but we don''t actually cleanup our reservation if something fails. This fixes the problem and I no longer see warnings. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> --- fs/btrfs/inode.c | 2 ++ 1
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...oot->dirty_list); + INIT_LIST_HEAD(&root->orphan_list); memset(&root->root_key, 0, sizeof(root->root_key)); memset(&root->root_item, 0, sizeof(root->root_item)); memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); @@ -1515,6 +1518,8 @@ int btrfs_free_fs_root(struct btrfs_fs_i (unsigned long)root->root_key.objectid); if (root->in_sysfs) btrfs_sysfs_del_root(root); + if (root->orphan_dir) + iput(root->orphan_dir); if (root->inode) iput(root->inode); if (root->node) @@ -1603,6 +1608,7 @@ int close_ctree(struct btrfs...