Lines Matching refs:btrfs_fs_info
56 struct btrfs_fs_info *fs_info);
58 static int btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info,
61 static int btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info,
63 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info);
64 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info);
75 struct btrfs_fs_info *info;
100 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) in btrfs_free_csum_hash()
211 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block()
304 static int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum()
331 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key()
398 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_read_extent_buffer_pages()
450 static int csum_dirty_buffer(struct btrfs_fs_info *fs_info, struct page *page) in csum_dirty_buffer()
499 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid()
533 struct btrfs_fs_info *fs_info; in btrfs_validate_metadata_buffer()
642 struct btrfs_fs_info *fs_info; in end_workqueue_bio()
670 blk_status_t btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio, in btrfs_bio_wq_end_io()
748 blk_status_t btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct bio *bio, in btrfs_wq_submit_bio()
806 static int check_async_write(struct btrfs_fs_info *fs_info, in check_async_write()
819 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_submit_metadata_bio()
883 struct btrfs_fs_info *fs_info; in btree_writepages()
950 void readahead_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr) in readahead_tree_block()
967 struct btrfs_fs_info *fs_info, in btrfs_find_create_tree_block()
983 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, in read_tree_block()
1006 struct btrfs_fs_info *fs_info = buf->fs_info; in btrfs_clean_tree_block()
1022 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root()
1099 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root()
1110 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root()
1131 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_create_tree()
1202 struct btrfs_fs_info *fs_info) in alloc_log_tree()
1240 struct btrfs_fs_info *fs_info) in btrfs_init_log_root_tree()
1255 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_log_tree()
1289 struct btrfs_fs_info *fs_info = tree_root->fs_info; in read_tree_root_path()
1412 static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, in btrfs_lookup_fs_root()
1426 static struct btrfs_root *btrfs_get_global_root(struct btrfs_fs_info *fs_info, in btrfs_get_global_root()
1451 int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info, in btrfs_insert_fs_root()
1474 void btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info) in btrfs_check_leaked_roots()
1494 void btrfs_free_fs_info(struct btrfs_fs_info *fs_info) in btrfs_free_fs_info()
1541 static struct btrfs_root *btrfs_get_root_ref(struct btrfs_fs_info *fs_info, in btrfs_get_root_ref()
1635 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root()
1649 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_new_fs_root()
1669 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root_commit_root()
1723 struct btrfs_fs_info *fs_info = root->fs_info; in cleaner_kthread()
1791 struct btrfs_fs_info *fs_info = root->fs_info; in transaction_kthread()
1858 static int find_newest_super_backup(struct btrfs_fs_info *info) in find_newest_super_backup()
1880 static void backup_super_roots(struct btrfs_fs_info *info) in backup_super_roots()
1964 static int read_backup_root(struct btrfs_fs_info *fs_info, u8 priority) in read_backup_root()
2000 static void btrfs_stop_all_workers(struct btrfs_fs_info *fs_info) in btrfs_stop_all_workers()
2037 static void free_root_pointers(struct btrfs_fs_info *info, bool free_chunk_root) in free_root_pointers()
2076 void btrfs_free_fs_roots(struct btrfs_fs_info *fs_info) in btrfs_free_fs_roots()
2103 static void btrfs_init_scrub(struct btrfs_fs_info *fs_info) in btrfs_init_scrub()
2114 static void btrfs_init_balance(struct btrfs_fs_info *fs_info) in btrfs_init_balance()
2124 static void btrfs_init_btree_inode(struct btrfs_fs_info *fs_info) in btrfs_init_btree_inode()
2150 static void btrfs_init_dev_replace_locks(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace_locks()
2157 static void btrfs_init_qgroup(struct btrfs_fs_info *fs_info) in btrfs_init_qgroup()
2169 static int btrfs_init_workqueues(struct btrfs_fs_info *fs_info, in btrfs_init_workqueues()
2243 static int btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash()
2281 static int btrfs_replay_log(struct btrfs_fs_info *fs_info, in btrfs_replay_log()
2332 static int btrfs_read_roots(struct btrfs_fs_info *fs_info) in btrfs_read_roots()
2432 static int validate_super(struct btrfs_fs_info *fs_info, in validate_super()
2603 static int btrfs_validate_mount_super(struct btrfs_fs_info *fs_info) in btrfs_validate_mount_super()
2614 static int btrfs_validate_write_super(struct btrfs_fs_info *fs_info, in btrfs_validate_write_super()
2643 static int __cold init_tree_roots(struct btrfs_fs_info *fs_info) in init_tree_roots()
2738 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info) in btrfs_init_fs_info()
2855 static int init_mount_fs_info(struct btrfs_fs_info *fs_info, struct super_block *sb) in init_mount_fs_info()
2894 struct btrfs_fs_info *fs_info = (struct btrfs_fs_info *)data; in btrfs_uuid_rescan_kthread()
2913 static int btrfs_check_uuid_tree(struct btrfs_fs_info *fs_info) in btrfs_check_uuid_tree()
2939 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in open_ctree()
3600 struct btrfs_fs_info *fs_info = device->fs_info; in write_dev_supers()
3789 static int check_barrier_error(struct btrfs_fs_info *fs_info) in check_barrier_error()
3800 static int barrier_all_devices(struct btrfs_fs_info *info) in barrier_all_devices()
3884 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors) in write_all_supers()
3997 void btrfs_drop_and_free_fs_root(struct btrfs_fs_info *fs_info, in btrfs_drop_and_free_fs_root()
4029 int btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info) in btrfs_cleanup_fs_roots()
4079 int btrfs_commit_super(struct btrfs_fs_info *fs_info) in btrfs_commit_super()
4099 void __cold close_ctree(struct btrfs_fs_info *fs_info) in close_ctree()
4272 struct btrfs_fs_info *fs_info; in btrfs_mark_buffer_dirty()
4311 static void __btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info, in __btrfs_btree_balance_dirty()
4334 void btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info) in btrfs_btree_balance_dirty()
4339 void btrfs_btree_balance_dirty_nodelay(struct btrfs_fs_info *fs_info) in btrfs_btree_balance_dirty_nodelay()
4351 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info) in btrfs_error_commit_super()
4364 static void btrfs_drop_all_logs(struct btrfs_fs_info *fs_info) in btrfs_drop_all_logs()
4409 static void btrfs_destroy_all_ordered_extents(struct btrfs_fs_info *fs_info) in btrfs_destroy_all_ordered_extents()
4442 struct btrfs_fs_info *fs_info) in btrfs_destroy_delayed_refs()
4559 static void btrfs_destroy_all_delalloc_inodes(struct btrfs_fs_info *fs_info) in btrfs_destroy_all_delalloc_inodes()
4583 static int btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info, in btrfs_destroy_marked_extents()
4616 static int btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info, in btrfs_destroy_pinned_extent()
4671 struct btrfs_fs_info *fs_info) in btrfs_cleanup_dirty_bgs()
4718 struct btrfs_fs_info *fs_info) in btrfs_cleanup_one_transaction()
4749 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info) in btrfs_cleanup_transaction()