Lines Matching refs:fs_info
18 struct btrfs_fs_info *fs_info = root->fs_info; in fail_caching_thread() local
20 btrfs_warn(fs_info, "failed to start inode caching task"); in fail_caching_thread()
21 btrfs_clear_pending_and_info(fs_info, INODE_MAP_CACHE, in fail_caching_thread()
32 struct btrfs_fs_info *fs_info = root->fs_info; in caching_kthread() local
41 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in caching_kthread()
60 down_read(&fs_info->commit_root_sem); in caching_kthread()
67 if (btrfs_fs_closing(fs_info)) in caching_kthread()
80 btrfs_transaction_in_commit(fs_info)) { in caching_kthread()
93 up_read(&fs_info->commit_root_sem); in caching_kthread()
109 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread()
120 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread()
132 up_read(&fs_info->commit_root_sem); in caching_kthread()
141 struct btrfs_fs_info *fs_info = root->fs_info; in start_caching() local
147 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in start_caching()
159 ret = load_free_ino_cache(fs_info, root); in start_caching()
177 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching()
191 if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) in btrfs_find_free_ino()
218 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_return_ino() local
221 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_return_ino()
225 __btrfs_add_free_space(fs_info, pinned, objectid, 1, 0); in btrfs_return_ino()
227 down_write(&fs_info->commit_root_sem); in btrfs_return_ino()
231 up_write(&fs_info->commit_root_sem); in btrfs_return_ino()
238 __btrfs_add_free_space(fs_info, pinned, objectid, 1, 0); in btrfs_return_ino()
240 up_write(&fs_info->commit_root_sem); in btrfs_return_ino()
261 if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) in btrfs_unpin_free_ino()
284 __btrfs_add_free_space(root->fs_info, ctl, in btrfs_unpin_free_ino()
400 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_save_ino_cache() local
422 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_save_ino_cache()
430 trans->block_rsv = &fs_info->trans_block_rsv; in btrfs_save_ino_cache()
440 trans->bytes_reserved = btrfs_calc_insert_metadata_size(fs_info, 10); in btrfs_save_ino_cache()
446 trace_btrfs_space_reservation(fs_info, "ino_cache", trans->transid, in btrfs_save_ino_cache()
516 trace_btrfs_space_reservation(fs_info, "ino_cache", trans->transid, in btrfs_save_ino_cache()
518 btrfs_block_rsv_release(fs_info, trans->block_rsv, in btrfs_save_ino_cache()
570 btrfs_warn(root->fs_info, in btrfs_find_free_objectid()