Lines Matching refs:fs_root
2235 struct btrfs_root *fs_root = NULL; in select_one_root() local
2257 fs_root = root; in select_one_root()
2267 if (!fs_root) in select_one_root()
2269 return fs_root; in select_one_root()
4129 struct btrfs_root *fs_root; in btrfs_recover_relocation() local
4177 fs_root = btrfs_get_fs_root(fs_info, in btrfs_recover_relocation()
4179 if (IS_ERR(fs_root)) { in btrfs_recover_relocation()
4180 ret = PTR_ERR(fs_root); in btrfs_recover_relocation()
4191 btrfs_put_root(fs_root); in btrfs_recover_relocation()
4240 fs_root = btrfs_get_fs_root(fs_info, reloc_root->root_key.offset, in btrfs_recover_relocation()
4242 if (IS_ERR(fs_root)) { in btrfs_recover_relocation()
4243 err = PTR_ERR(fs_root); in btrfs_recover_relocation()
4253 btrfs_put_root(fs_root); in btrfs_recover_relocation()
4257 fs_root->reloc_root = btrfs_grab_root(reloc_root); in btrfs_recover_relocation()
4258 btrfs_put_root(fs_root); in btrfs_recover_relocation()
4291 fs_root = btrfs_grab_root(fs_info->data_reloc_root); in btrfs_recover_relocation()
4292 ASSERT(fs_root); in btrfs_recover_relocation()
4293 err = btrfs_orphan_cleanup(fs_root); in btrfs_recover_relocation()
4294 btrfs_put_root(fs_root); in btrfs_recover_relocation()