/linux-4.1.27/fs/btrfs/tests/ |
D | btrfs-tests.c | 81 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), in btrfs_alloc_dummy_fs_info() local 84 if (!fs_info) in btrfs_alloc_dummy_fs_info() 85 return fs_info; in btrfs_alloc_dummy_fs_info() 86 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info() 88 if (!fs_info->fs_devices) { in btrfs_alloc_dummy_fs_info() 89 kfree(fs_info); in btrfs_alloc_dummy_fs_info() 92 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info() 94 if (!fs_info->super_copy) { in btrfs_alloc_dummy_fs_info() 95 kfree(fs_info->fs_devices); in btrfs_alloc_dummy_fs_info() 96 kfree(fs_info); in btrfs_alloc_dummy_fs_info() [all …]
|
D | qgroup-tests.c | 229 struct btrfs_fs_info *fs_info = root->fs_info; in test_no_shared_qgroup() local 235 ret = btrfs_create_qgroup(NULL, fs_info, 5); in test_no_shared_qgroup() 241 ret = btrfs_qgroup_record_ref(&trans, fs_info, 5, 4096, 4096, in test_no_shared_qgroup() 252 ret = btrfs_delayed_qgroup_accounting(&trans, fs_info); in test_no_shared_qgroup() 258 if (btrfs_verify_qgroup_counts(fs_info, 5, 4096, 4096)) { in test_no_shared_qgroup() 267 ret = btrfs_qgroup_record_ref(&trans, fs_info, 5, 4096, 4096, in test_no_shared_qgroup() 274 ret = btrfs_delayed_qgroup_accounting(&trans, fs_info); in test_no_shared_qgroup() 280 if (btrfs_verify_qgroup_counts(fs_info, 5, 0, 0)) { in test_no_shared_qgroup() 296 struct btrfs_fs_info *fs_info = root->fs_info; in test_multiple_refs() local 304 ret = btrfs_create_qgroup(NULL, fs_info, 256); in test_multiple_refs() [all …]
|
D | inode-tests.c | 252 root->fs_info = btrfs_alloc_dummy_fs_info(); in test_btrfs_get_extent() 253 if (!root->fs_info) { in test_btrfs_get_extent() 840 root->fs_info = btrfs_alloc_dummy_fs_info(); in test_hole_first() 841 if (!root->fs_info) { in test_hole_first() 932 root->fs_info = btrfs_alloc_dummy_fs_info(); in test_extent_accounting() 933 if (!root->fs_info) { in test_extent_accounting()
|
/linux-4.1.27/fs/btrfs/ |
D | disk-io.c | 60 static int btrfs_check_super_valid(struct btrfs_fs_info *fs_info, 229 BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btree_get_extent() 244 em->bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btree_get_extent() 277 static int csum_tree_block(struct btrfs_fs_info *fs_info, in csum_tree_block() argument 281 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in csum_tree_block() 325 fs_info->sb->s_id, buf->start, in csum_tree_block() 373 eb->fs_info->sb->s_id, eb->start, in verify_parent_transid() 449 io_tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages() 470 num_copies = btrfs_num_copies(root->fs_info, in btree_read_extent_buffer_pages() 499 static int csum_dirty_buffer(struct btrfs_fs_info *fs_info, struct page *page) in csum_dirty_buffer() argument [all …]
|
D | qgroup.c | 106 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, 108 static void qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info); 111 static struct btrfs_qgroup *find_qgroup_rb(struct btrfs_fs_info *fs_info, in find_qgroup_rb() argument 114 struct rb_node *n = fs_info->qgroup_tree.rb_node; in find_qgroup_rb() 130 static struct btrfs_qgroup *add_qgroup_rb(struct btrfs_fs_info *fs_info, in add_qgroup_rb() argument 133 struct rb_node **p = &fs_info->qgroup_tree.rb_node; in add_qgroup_rb() 159 rb_insert_color(&qgroup->node, &fs_info->qgroup_tree); in add_qgroup_rb() 188 static int del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) in del_qgroup_rb() argument 190 struct btrfs_qgroup *qgroup = find_qgroup_rb(fs_info, qgroupid); in del_qgroup_rb() 195 rb_erase(&qgroup->node, &fs_info->qgroup_tree); in del_qgroup_rb() [all …]
|
D | dev-replace.c | 41 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, 44 struct btrfs_fs_info *fs_info, 50 static u64 __btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info); 52 static int btrfs_dev_replace_continue_on_mount(struct btrfs_fs_info *fs_info); 55 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() argument 58 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_init_dev_replace() 59 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in btrfs_init_dev_replace() 106 btrfs_warn(fs_info, in btrfs_init_dev_replace() 138 dev_replace->srcdev = btrfs_find_device(fs_info, src_devid, in btrfs_init_dev_replace() 140 dev_replace->tgtdev = btrfs_find_device(fs_info, in btrfs_init_dev_replace() [all …]
|
D | sysfs.c | 37 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() argument 40 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features() 49 static void set_features(struct btrfs_fs_info *fs_info, in set_features() argument 52 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features() 96 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() local 98 if (fs_info) { in btrfs_feature_attr_show() 99 u64 features = get_features(fs_info, fa->feature_set); in btrfs_feature_attr_show() 112 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() local 118 fs_info = to_fs_info(kobj); in btrfs_feature_attr_store() 119 if (!fs_info) in btrfs_feature_attr_store() [all …]
|
D | super.c | 100 static void save_error_info(struct btrfs_fs_info *fs_info) in save_error_info() argument 106 set_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state); in save_error_info() 110 static void btrfs_handle_error(struct btrfs_fs_info *fs_info) in btrfs_handle_error() argument 112 struct super_block *sb = fs_info->sb; in btrfs_handle_error() 117 if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) { in btrfs_handle_error() 119 btrfs_info(fs_info, "forced readonly"); in btrfs_handle_error() 138 void __btrfs_std_error(struct btrfs_fs_info *fs_info, const char *function, in __btrfs_std_error() argument 141 struct super_block *sb = fs_info->sb; in __btrfs_std_error() 170 save_error_info(fs_info); in __btrfs_std_error() 172 btrfs_handle_error(fs_info); in __btrfs_std_error() [all …]
|
D | transaction.c | 106 struct btrfs_fs_info *fs_info) in switch_commit_roots() argument 110 down_write(&fs_info->commit_root_sem); in switch_commit_roots() 120 up_write(&fs_info->commit_root_sem); in switch_commit_roots() 154 struct btrfs_fs_info *fs_info = root->fs_info; in join_transaction() local 156 spin_lock(&fs_info->trans_lock); in join_transaction() 159 if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) { in join_transaction() 160 spin_unlock(&fs_info->trans_lock); in join_transaction() 164 cur_trans = fs_info->running_transaction; in join_transaction() 167 spin_unlock(&fs_info->trans_lock); in join_transaction() 171 spin_unlock(&fs_info->trans_lock); in join_transaction() [all …]
|
D | qgroup.h | 62 struct btrfs_fs_info *fs_info); 64 struct btrfs_fs_info *fs_info); 65 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info); 66 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info); 67 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info); 69 struct btrfs_fs_info *fs_info, u64 src, u64 dst); 71 struct btrfs_fs_info *fs_info, u64 src, u64 dst); 73 struct btrfs_fs_info *fs_info, u64 qgroupid); 75 struct btrfs_fs_info *fs_info, u64 qgroupid); 77 struct btrfs_fs_info *fs_info, u64 qgroupid, [all …]
|
D | reada.c | 94 struct btrfs_fs_info *fs_info; member 100 static void reada_start_machine(struct btrfs_fs_info *fs_info); 101 static void __reada_start_machine(struct btrfs_fs_info *fs_info); 117 struct btrfs_fs_info *fs_info = root->fs_info; in __readahead_hook() local 126 spin_lock(&fs_info->reada_lock); in __readahead_hook() 127 re = radix_tree_lookup(&fs_info->reada_tree, index); in __readahead_hook() 130 spin_unlock(&fs_info->reada_lock); in __readahead_hook() 191 btrfs_debug(root->fs_info, in __readahead_hook() 223 reada_extent_put(fs_info, re); /* one ref for each entry */ in __readahead_hook() 225 reada_extent_put(fs_info, re); /* our ref */ in __readahead_hook() [all …]
|
D | volumes.c | 254 struct btrfs_fs_info *fs_info; in run_scheduled_bios() local 276 fs_info = device->dev_root->fs_info; in run_scheduled_bios() 277 limit = btrfs_async_submit_limit(fs_info); in run_scheduled_bios() 345 if (atomic_dec_return(&fs_info->nr_async_bios) < limit && in run_scheduled_bios() 346 waitqueue_active(&fs_info->async_submit_wait)) in run_scheduled_bios() 347 wake_up(&fs_info->async_submit_wait); in run_scheduled_bios() 379 fs_info->fs_devices->open_devices > 1) { in run_scheduled_bios() 412 btrfs_queue_work(fs_info->submit_workers, in run_scheduled_bios() 1083 search_list = &trans->root->fs_info->pinned_chunks; in contains_pending_extent() 1134 search_start = max(root->fs_info->alloc_start, 1024ull * 1024); in find_free_dev_extent() [all …]
|
D | scrub.c | 249 static void scrub_recheck_block(struct btrfs_fs_info *fs_info, 253 static void scrub_recheck_block_checksum(struct btrfs_fs_info *fs_info, 284 static void scrub_remap_extent(struct btrfs_fs_info *fs_info, 291 struct btrfs_fs_info *fs_info, 307 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info); 308 static void scrub_blocked_if_needed(struct btrfs_fs_info *fs_info); 325 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in __scrub_blocked_if_needed() argument 327 while (atomic_read(&fs_info->scrub_pause_req)) { in __scrub_blocked_if_needed() 328 mutex_unlock(&fs_info->scrub_lock); in __scrub_blocked_if_needed() 329 wait_event(fs_info->scrub_pause_wait, in __scrub_blocked_if_needed() [all …]
|
D | dev-replace.h | 24 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info); 26 struct btrfs_fs_info *fs_info); 27 void btrfs_after_dev_replace_commit(struct btrfs_fs_info *fs_info); 30 void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info, 32 int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info, 34 void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info); 35 int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
|
D | disk-io.h | 55 struct btrfs_fs_info *fs_info, struct extent_buffer *buf); 64 struct extent_buffer *btrfs_find_tree_block(struct btrfs_fs_info *fs_info, 69 int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info, 71 void btrfs_free_fs_roots(struct btrfs_fs_info *fs_info); 73 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, 77 btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info, in btrfs_read_fs_root_no_name() argument 80 return btrfs_get_fs_root(fs_info, location, true); in btrfs_read_fs_root_no_name() 83 int btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info); 86 void btrfs_drop_and_free_fs_root(struct btrfs_fs_info *fs_info, 123 int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode, [all …]
|
D | extent-tree.c | 234 set_extent_bits(&root->fs_info->freed_extents[0], in add_excluded_extent() 236 set_extent_bits(&root->fs_info->freed_extents[1], in add_excluded_extent() 249 clear_extent_bits(&root->fs_info->freed_extents[0], in free_excluded_extents() 251 clear_extent_bits(&root->fs_info->freed_extents[1], in free_excluded_extents() 274 ret = btrfs_rmap_block(&root->fs_info->mapping_tree, in exclude_super_stripes() 382 struct btrfs_fs_info *fs_info; in caching_thread() local 395 fs_info = block_group->fs_info; in caching_thread() 396 extent_root = fs_info->extent_root; in caching_thread() 420 down_read(&fs_info->commit_root_sem); in caching_thread() 431 if (btrfs_fs_closing(fs_info) > 1) { in caching_thread() [all …]
|
D | volumes.h | 300 struct btrfs_fs_info *fs_info; member 394 struct btrfs_fs_info *fs_info; member 409 int btrfs_map_block(struct btrfs_fs_info *fs_info, int rw, 412 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, int rw, 436 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, 441 int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len); 444 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, 453 int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info); 454 int btrfs_recover_balance(struct btrfs_fs_info *fs_info); 455 int btrfs_pause_balance(struct btrfs_fs_info *fs_info); [all …]
|
D | ioctl.c | 325 if (root->fs_info->compress_type == BTRFS_COMPRESS_LZO) in btrfs_ioctl_setflags() 374 struct btrfs_fs_info *fs_info = btrfs_sb(file_inode(file)->i_sb); in btrfs_ioctl_fitrim() local 380 u64 total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_ioctl_fitrim() 387 list_for_each_entry_rcu(device, &fs_info->fs_devices->devices, in btrfs_ioctl_fitrim() 405 range.len < fs_info->sb->s_blocksize) in btrfs_ioctl_fitrim() 410 ret = btrfs_trim_fs(fs_info->tree_root, &range); in btrfs_ioctl_fitrim() 455 ret = btrfs_find_free_objectid(root->fs_info->tree_root, &objectid); in create_subvol() 486 ret = btrfs_qgroup_inherit(trans, root->fs_info, 0, objectid, inherit); in create_subvol() 502 write_extent_buffer(leaf, root->fs_info->fsid, btrfs_header_fsid(), in create_subvol() 504 write_extent_buffer(leaf, root->fs_info->chunk_tree_uuid, in create_subvol() [all …]
|
D | ctree.c | 42 static int tree_mod_log_free_eb(struct btrfs_fs_info *fs_info, 220 spin_lock(&root->fs_info->trans_lock); in add_root_to_dirty_list() 225 &root->fs_info->dirty_cowonly_roots); in add_root_to_dirty_list() 228 &root->fs_info->dirty_cowonly_roots); in add_root_to_dirty_list() 230 spin_unlock(&root->fs_info->trans_lock); in add_root_to_dirty_list() 249 trans->transid != root->fs_info->running_transaction->transid); in btrfs_copy_root() 275 write_extent_buffer(cow, root->fs_info->fsid, btrfs_header_fsid(), in btrfs_copy_root() 335 static inline void tree_mod_log_read_lock(struct btrfs_fs_info *fs_info) in tree_mod_log_read_lock() argument 337 read_lock(&fs_info->tree_mod_log_lock); in tree_mod_log_read_lock() 340 static inline void tree_mod_log_read_unlock(struct btrfs_fs_info *fs_info) in tree_mod_log_read_unlock() argument [all …]
|
D | backref.c | 308 static int __resolve_indirect_ref(struct btrfs_fs_info *fs_info, in __resolve_indirect_ref() argument 326 index = srcu_read_lock(&fs_info->subvol_srcu); in __resolve_indirect_ref() 328 root = btrfs_read_fs_root_no_name(fs_info, &root_key); in __resolve_indirect_ref() 330 srcu_read_unlock(&fs_info->subvol_srcu, index); in __resolve_indirect_ref() 341 srcu_read_unlock(&fs_info->subvol_srcu, index); in __resolve_indirect_ref() 349 srcu_read_unlock(&fs_info->subvol_srcu, index); in __resolve_indirect_ref() 380 static int __resolve_indirect_refs(struct btrfs_fs_info *fs_info, in __resolve_indirect_refs() argument 413 err = __resolve_indirect_ref(fs_info, path, time_seq, ref, in __resolve_indirect_refs() 477 static int __add_missing_keys(struct btrfs_fs_info *fs_info, in __add_missing_keys() argument 492 eb = read_tree_block(fs_info->tree_root, ref->wanted_disk_byte, in __add_missing_keys() [all …]
|
D | inode-map.c | 32 struct btrfs_fs_info *fs_info = root->fs_info; in caching_kthread() local 58 down_read(&fs_info->commit_root_sem); in caching_kthread() 65 if (btrfs_fs_closing(fs_info)) in caching_kthread() 78 btrfs_transaction_in_commit(fs_info)) { in caching_kthread() 91 up_read(&fs_info->commit_root_sem); in caching_kthread() 130 up_read(&fs_info->commit_root_sem); in caching_kthread() 156 ret = load_free_ino_cache(root->fs_info, root); in start_caching() 180 btrfs_warn(root->fs_info, "failed to start inode caching task"); in start_caching() 181 btrfs_clear_pending_and_info(root->fs_info, INODE_MAP_CACHE, in start_caching() 220 down_write(&root->fs_info->commit_root_sem); in btrfs_return_ino() [all …]
|
D | tree-log.h | 45 static inline void btrfs_set_log_full_commit(struct btrfs_fs_info *fs_info, in btrfs_set_log_full_commit() argument 48 ACCESS_ONCE(fs_info->last_trans_log_full_commit) = trans->transid; in btrfs_set_log_full_commit() 51 static inline int btrfs_need_log_full_commit(struct btrfs_fs_info *fs_info, in btrfs_need_log_full_commit() argument 54 return ACCESS_ONCE(fs_info->last_trans_log_full_commit) == in btrfs_need_log_full_commit() 62 struct btrfs_fs_info *fs_info);
|
D | delayed-ref.c | 332 struct btrfs_fs_info *fs_info, in btrfs_merge_delayed_refs() argument 347 spin_lock(&fs_info->tree_mod_seq_lock); in btrfs_merge_delayed_refs() 348 if (!list_empty(&fs_info->tree_mod_seq_list)) { in btrfs_merge_delayed_refs() 351 elem = list_first_entry(&fs_info->tree_mod_seq_list, in btrfs_merge_delayed_refs() 355 spin_unlock(&fs_info->tree_mod_seq_lock); in btrfs_merge_delayed_refs() 373 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, in btrfs_check_delayed_seq() argument 380 spin_lock(&fs_info->tree_mod_seq_lock); in btrfs_check_delayed_seq() 381 if (!list_empty(&fs_info->tree_mod_seq_list)) { in btrfs_check_delayed_seq() 382 elem = list_first_entry(&fs_info->tree_mod_seq_list, in btrfs_check_delayed_seq() 393 spin_unlock(&fs_info->tree_mod_seq_lock); in btrfs_check_delayed_seq() [all …]
|
D | backref.h | 35 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, 43 int iterate_extent_inodes(struct btrfs_fs_info *fs_info, 48 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info, 55 struct btrfs_fs_info *fs_info, u64 bytenr, 72 struct btrfs_fs_info *fs_info, u64 root_objectid,
|
D | ctree.h | 1282 struct btrfs_fs_info *fs_info; member 1834 struct btrfs_fs_info *fs_info; member 2162 #define btrfs_test_opt(root, opt) ((root)->fs_info->mount_opt & \ 2168 btrfs_info(root->fs_info, fmt, ##args); \ 2169 btrfs_set_opt(root->fs_info->mount_opt, opt); \ 2175 btrfs_info(root->fs_info, fmt, ##args); \ 2176 btrfs_clear_opt(root->fs_info->mount_opt, opt); \ 3440 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info); 3492 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, 3512 int btrfs_init_space_info(struct btrfs_fs_info *fs_info); [all …]
|
D | uuid-tree.c | 72 btrfs_warn(uuid_root->fs_info, "uuid item with illegal size %lu!", in btrfs_uuid_tree_lookup() 140 btrfs_warn(uuid_root->fs_info, "insert uuid item failed %d " in btrfs_uuid_tree_add() 187 btrfs_warn(uuid_root->fs_info, "error %d while searching for uuid item!", in btrfs_uuid_tree_rem() 201 btrfs_warn(uuid_root->fs_info, "uuid item with illegal size %lu!", in btrfs_uuid_tree_rem() 258 int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info, in btrfs_uuid_tree_iterate() argument 262 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate() 302 btrfs_warn(fs_info, "uuid item with illegal size %lu!", in btrfs_uuid_tree_iterate() 316 ret = check_func(fs_info, uuid, key.type, subid_cpu); in btrfs_uuid_tree_iterate() 352 btrfs_warn(fs_info, "btrfs_uuid_tree_iterate failed %d", ret); in btrfs_uuid_tree_iterate()
|
D | export.c | 62 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_get_dentry() local 76 index = srcu_read_lock(&fs_info->subvol_srcu); in btrfs_get_dentry() 78 root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_get_dentry() 94 srcu_read_unlock(&fs_info->subvol_srcu, index); in btrfs_get_dentry() 103 srcu_read_unlock(&fs_info->subvol_srcu, index); in btrfs_get_dentry() 172 root = root->fs_info->tree_root; in btrfs_get_parent() 208 return btrfs_get_dentry(root->fs_info->sb, key.objectid, in btrfs_get_parent() 214 return d_obtain_alias(btrfs_iget(root->fs_info->sb, &key, root, NULL)); in btrfs_get_parent() 253 root = root->fs_info->tree_root; in btrfs_get_name()
|
D | file-item.c | 98 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_lookup_csum() 118 root->fs_info->sb->s_blocksize_bits; in btrfs_lookup_csum() 179 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in __btrfs_lookup_bio_sums() 238 item = btrfs_lookup_csum(NULL, root->fs_info->csum_root, in __btrfs_lookup_bio_sums() 249 btrfs_info(BTRFS_I(inode)->root->fs_info, in __btrfs_lookup_bio_sums() 320 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_lookup_csums_range() 348 root->fs_info->sb->s_blocksize_bits; in btrfs_lookup_csums_range() 399 root->fs_info->sb->s_blocksize_bits; in btrfs_lookup_csums_range() 401 size >>= root->fs_info->sb->s_blocksize_bits; in btrfs_lookup_csums_range() 522 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in truncate_one_csum() [all …]
|
D | file.c | 104 p = &root->fs_info->defrag_inodes.rb_node; in __btrfs_add_inode_defrag() 128 rb_insert_color(&defrag->rb_node, &root->fs_info->defrag_inodes); in __btrfs_add_inode_defrag() 137 if (btrfs_fs_closing(root->fs_info)) in __need_auto_defrag() 174 spin_lock(&root->fs_info->defrag_inodes_lock); in btrfs_add_inode_defrag() 187 spin_unlock(&root->fs_info->defrag_inodes_lock); in btrfs_add_inode_defrag() 209 spin_lock(&root->fs_info->defrag_inodes_lock); in btrfs_requeue_inode_defrag() 211 spin_unlock(&root->fs_info->defrag_inodes_lock); in btrfs_requeue_inode_defrag() 224 btrfs_pick_defrag_inode(struct btrfs_fs_info *fs_info, u64 root, u64 ino) in btrfs_pick_defrag_inode() argument 235 spin_lock(&fs_info->defrag_inodes_lock); in btrfs_pick_defrag_inode() 236 p = fs_info->defrag_inodes.rb_node; in btrfs_pick_defrag_inode() [all …]
|
D | delayed-ref.h | 205 int btrfs_add_delayed_tree_ref(struct btrfs_fs_info *fs_info, 211 int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info, 218 int btrfs_add_delayed_extent_op(struct btrfs_fs_info *fs_info, 223 struct btrfs_fs_info *fs_info, 240 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info,
|
D | ordered-data.c | 68 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in ordered_data_tree_panic() local 69 btrfs_panic(fs_info, errno, "Inconsistency in ordered tree at offset " in ordered_data_tree_panic() 239 spin_lock(&root->fs_info->ordered_root_lock); in __btrfs_add_ordered_extent() 242 &root->fs_info->ordered_roots); in __btrfs_add_ordered_extent() 243 spin_unlock(&root->fs_info->ordered_root_lock); in __btrfs_add_ordered_extent() 340 btrfs_crit(BTRFS_I(inode)->root->fs_info, in btrfs_dec_test_first_ordered_pending() 345 btrfs_crit(BTRFS_I(inode)->root->fs_info, in btrfs_dec_test_first_ordered_pending() 409 btrfs_crit(BTRFS_I(inode)->root->fs_info, in btrfs_dec_test_ordered_pending() 587 spin_lock(&root->fs_info->ordered_root_lock); in btrfs_remove_ordered_extent() 590 spin_unlock(&root->fs_info->ordered_root_lock); in btrfs_remove_ordered_extent() [all …]
|
D | inode.c | 265 data_len > root->fs_info->max_inline) { in cow_file_range_inline() 278 trans->block_rsv = &root->fs_info->delalloc_block_rsv; in cow_file_range_inline() 414 int compress_type = root->fs_info->compress_type; in compress_file_range() 779 em->bdev = root->fs_info->fs_devices->latest_bdev; in submit_compressed_extents() 965 btrfs_super_total_bytes(root->fs_info->super_copy)); in cow_file_range() 996 em->bdev = root->fs_info->fs_devices->latest_bdev; in cow_file_range() 1099 if (atomic_sub_return(nr_pages, &root->fs_info->async_delalloc_pages) < in async_cow_submit() 1101 waitqueue_active(&root->fs_info->async_submit_wait)) in async_cow_submit() 1102 wake_up(&root->fs_info->async_submit_wait); in async_cow_submit() 1153 atomic_add(nr_pages, &root->fs_info->async_delalloc_pages); in cow_file_range_async() [all …]
|
D | delayed-inode.c | 84 return root->fs_info->delayed_root; in btrfs_get_delayed_root() 231 delayed_root = node->root->fs_info->delayed_root; in btrfs_next_delayed_node() 260 delayed_root = delayed_node->root->fs_info->delayed_root; in __btrfs_release_delayed_node() 445 atomic_inc(&delayed_node->root->fs_info->delayed_root->items); in __btrfs_add_delayed_item() 477 delayed_root = delayed_item->delayed_node->root->fs_info->delayed_root; in __btrfs_remove_delayed_item() 555 dst_rsv = &root->fs_info->delayed_block_rsv; in btrfs_delayed_item_reserve_metadata() 560 trace_btrfs_space_reservation(root->fs_info, "delayed_item", in btrfs_delayed_item_reserve_metadata() 577 rsv = &root->fs_info->delayed_block_rsv; in btrfs_delayed_item_release_metadata() 578 trace_btrfs_space_reservation(root->fs_info, "delayed_item", in btrfs_delayed_item_release_metadata() 598 dst_rsv = &root->fs_info->delayed_block_rsv; in btrfs_delayed_inode_reserve_metadata() [all …]
|
D | relocation.c | 334 struct btrfs_fs_info *fs_info = NULL; in backref_tree_panic() local 338 fs_info = bnode->root->fs_info; in backref_tree_panic() 339 btrfs_panic(fs_info, errno, "Inconsistency in backref cache " in backref_tree_panic() 539 root->fs_info->running_transaction->transid - 1) in should_ignore_root() 583 static struct btrfs_root *read_fs_root(struct btrfs_fs_info *fs_info, in read_fs_root() argument 595 return btrfs_get_fs_root(fs_info, &key, false); in read_fs_root() 610 root = read_fs_root(rc->extent_root->fs_info, root_objectid); in find_tree_root() 885 root = read_fs_root(rc->extent_root->fs_info, key.offset); 1279 struct reloc_control *rc = root->fs_info->reloc_ctl; 1293 btrfs_panic(root->fs_info, -EEXIST, "Duplicate root found " [all …]
|
D | extent_io.c | 2029 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in repair_io_failure() local 2035 struct btrfs_mapping_tree *map_tree = &fs_info->mapping_tree; in repair_io_failure() 2038 ASSERT(!(fs_info->sb->s_flags & MS_RDONLY)); in repair_io_failure() 2051 ret = btrfs_map_block(fs_info, WRITE, logical, in repair_io_failure() 2091 if (root->fs_info->sb->s_flags & MS_RDONLY) in repair_eb_io_failure() 2097 ret = repair_io_failure(root->fs_info->btree_inode, start, in repair_eb_io_failure() 2118 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in clean_io_failure() local 2143 if (fs_info->sb->s_flags & MS_RDONLY) in clean_io_failure() 2154 num_copies = btrfs_num_copies(fs_info, failrec->logical, in clean_io_failure() 2296 num_copies = btrfs_num_copies(BTRFS_I(inode)->root->fs_info, in btrfs_check_repairable() [all …]
|
D | tree-log.c | 148 if (btrfs_need_log_full_commit(root->fs_info, trans)) { in start_log_trans() 171 mutex_lock(&root->fs_info->tree_log_mutex); in start_log_trans() 172 if (!root->fs_info->log_root_tree) in start_log_trans() 173 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans() 174 mutex_unlock(&root->fs_info->tree_log_mutex); in start_log_trans() 306 if (btrfs_fs_incompat(log->fs_info, MIXED_GROUPS)) { in process_one_buffer() 313 ret = btrfs_pin_extent_for_log_replay(log->fs_info->extent_root, in process_one_buffer() 562 inode = btrfs_iget(root->fs_info->sb, &key, root, NULL); in read_one_inode() 741 root->fs_info->csum_root, in replay_one_extent() 2343 clean_tree_block(trans, root->fs_info, in walk_down_log_tree() [all …]
|
D | raid56.c | 70 struct btrfs_fs_info *fs_info; member 360 table = rbio->fs_info->stripe_hash_table; in __remove_rbio_from_cache() 415 table = rbio->fs_info->stripe_hash_table; in remove_rbio_from_cache() 475 table = rbio->fs_info->stripe_hash_table; in cache_rbio() 656 struct btrfs_stripe_hash *h = rbio->fs_info->stripe_hash_table->table + bucket; in lock_stripe_add() 750 h = rbio->fs_info->stripe_hash_table->table + bucket; in unlock_stripe() 860 btrfs_bio_counter_sub(rbio->fs_info, rbio->generic_bio_cnt); in rbio_orig_end_io() 970 rbio->fs_info = root->fs_info; in alloc_rbio() 1480 btrfs_queue_work(rbio->fs_info->rmw_workers, in async_rmw_stripe() 1489 btrfs_queue_work(rbio->fs_info->rmw_workers, in async_read_rebuild() [all …]
|
D | sysfs.h | 85 int btrfs_kobj_add_device(struct btrfs_fs_info *fs_info, 87 int btrfs_kobj_rm_device(struct btrfs_fs_info *fs_info,
|
D | root-tree.c | 158 btrfs_crit(root->fs_info, "unable to update root key %llu %u %llu", in btrfs_update_root() 233 if (tree_root->fs_info->sb->s_flags & MS_RDONLY) in btrfs_find_orphan_roots() 286 btrfs_error(tree_root->fs_info, err, in btrfs_find_orphan_roots() 295 btrfs_error(tree_root->fs_info, err, in btrfs_find_orphan_roots() 311 err = btrfs_insert_fs_root(root->fs_info, root); in btrfs_find_orphan_roots()
|
D | free-space-cache.c | 77 inode = btrfs_iget(root->fs_info->sb, &location, root, NULL); in __lookup_free_space_inode() 115 btrfs_info(root->fs_info, in lookup_free_space_inode() 397 btrfs_err(BTRFS_I(inode)->root->fs_info, in io_ctl_prepare_pages() 713 btrfs_info(root->fs_info, in __load_free_space_cache() 720 btrfs_err(root->fs_info, in __load_free_space_cache() 772 btrfs_err(root->fs_info, in __load_free_space_cache() 792 btrfs_err(root->fs_info, in __load_free_space_cache() 828 int load_free_space_cache(struct btrfs_fs_info *fs_info, in load_free_space_cache() argument 832 struct btrfs_root *root = fs_info->tree_root; in load_free_space_cache() 871 ret = __load_free_space_cache(fs_info->tree_root, inode, ctl, in load_free_space_cache() [all …]
|
D | compression.c | 91 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in compressed_bio_size() 130 btrfs_info(BTRFS_I(inode)->root->fs_info, in check_compressed_csum() 362 bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btrfs_submit_compressed_write() 397 ret = btrfs_bio_wq_end_io(root->fs_info, bio, in btrfs_submit_compressed_write() 419 btrfs_info(BTRFS_I(inode)->root->fs_info, in btrfs_submit_compressed_write() 429 ret = btrfs_bio_wq_end_io(root->fs_info, bio, BTRFS_WQ_ENDIO_DATA); in btrfs_submit_compressed_write() 630 bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btrfs_submit_compressed_read() 678 ret = btrfs_bio_wq_end_io(root->fs_info, comp_bio, in btrfs_submit_compressed_read() 717 ret = btrfs_bio_wq_end_io(root->fs_info, comp_bio, in btrfs_submit_compressed_read()
|
D | extent_io.h | 127 struct btrfs_fs_info *fs_info; member 264 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 266 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 269 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 380 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info,
|
D | free-space-cache.h | 67 int load_free_space_cache(struct btrfs_fs_info *fs_info, 83 int load_free_ino_cache(struct btrfs_fs_info *fs_info,
|
D | dir-item.c | 169 if (root == root->fs_info->tree_root) { in btrfs_insert_dir_item() 458 btrfs_crit(root->fs_info, "invalid dir item type: %d", in verify_dir_item() 467 btrfs_crit(root->fs_info, "invalid dir item name len: %u", in verify_dir_item() 475 btrfs_crit(root->fs_info, "invalid dir item name + data len: %u + %u", in verify_dir_item()
|
D | props.c | 281 btrfs_warn(root->fs_info, in inode_prop_iterator() 361 parent_inode = btrfs_iget(parent_root->fs_info->sb, &key, in btrfs_subvol_inherit_props() 366 child_inode = btrfs_iget(root->fs_info->sb, &key, root, NULL); in btrfs_subvol_inherit_props()
|
D | send.c | 1337 down_read(&sctx->send_root->fs_info->commit_root_sem); in find_extent_clone() 1338 ret = extent_from_logical(sctx->send_root->fs_info, disk_byte, tmp_path, in find_extent_clone() 1340 up_read(&sctx->send_root->fs_info->commit_root_sem); in find_extent_clone() 1382 ret = iterate_extent_inodes(sctx->send_root->fs_info, in find_extent_clone() 1392 btrfs_err(sctx->send_root->fs_info, "did not find backref in " in find_extent_clone() 1474 btrfs_err(root->fs_info, in read_symlink() 2002 btrfs_err(sctx->send_root->fs_info, in name_cache_delete() 2308 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin() 4008 btrfs_err(sctx->send_root->fs_info, in process_all_refs() 4366 struct btrfs_fs_info *fs_info = root->fs_info; in fill_read_buf() local [all …]
|
D | tree-defrag.c | 44 if (root->fs_info->extent_root == root) { in btrfs_defrag_leaves()
|
D | print-tree.c | 193 btrfs_info(root->fs_info, "leaf %llu total ptrs %d free space %d", in btrfs_print_leaf() 327 btrfs_info(root->fs_info, "node %llu level %d total ptrs %d free spc %u", in btrfs_print_tree()
|
D | btrfs_inode.h | 251 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
|
D | ordered-data.h | 199 void btrfs_wait_ordered_roots(struct btrfs_fs_info *fs_info, int nr);
|
D | transaction.h | 192 void btrfs_apply_pending_changes(struct btrfs_fs_info *fs_info);
|
D | inode-item.c | 160 btrfs_std_error(root->fs_info, -ENOENT); in btrfs_del_inode_extref() 387 struct btrfs_super_block *disk_super = root->fs_info->super_copy; in btrfs_insert_inode_ref()
|
D | xattr.c | 488 const struct xattr *xattr_array, void *fs_info) in btrfs_initxattrs() argument 491 struct btrfs_trans_handle *trans = fs_info; in btrfs_initxattrs()
|
D | check-integrity.c | 730 btrfs_num_copies(state->root->fs_info, in btrfsic_process_superblock() 904 btrfs_num_copies(state->root->fs_info, in btrfsic_process_superblock_dev_mirror() 1285 btrfs_num_copies(state->root->fs_info, in btrfsic_create_link_to_next_block() 1487 btrfs_num_copies(state->root->fs_info, in btrfsic_handle_extent_data() 1578 ret = btrfs_map_block(state->root->fs_info, READ, in btrfsic_map_block() 1801 if (memcmp(h->fsid, state->root->fs_info->fsid, BTRFS_UUID_SIZE)) in btrfsic_test_for_metadata() 2375 btrfs_num_copies(state->root->fs_info, in btrfsic_process_written_superblock() 2847 num_copies = btrfs_num_copies(state->root->fs_info, in btrfsic_cmp_log_and_dev_bytenr()
|
/linux-4.1.27/fs/gfs2/ |
D | recovery.c | 466 fs_info(sdp, "jid=%u: Trying to acquire journal lock...\n", in gfs2_recover_func() 480 fs_info(sdp, "jid=%u: Busy\n", jd->jd_jid); in gfs2_recover_func() 492 fs_info(sdp, "jid=%u, already locked for use\n", jd->jd_jid); in gfs2_recover_func() 495 fs_info(sdp, "jid=%u: Looking at journal...\n", jd->jd_jid); in gfs2_recover_func() 506 fs_info(sdp, "jid=%u: Acquiring the transaction lock...\n", in gfs2_recover_func() 529 fs_info(sdp, "recovery required on " in gfs2_recover_func() 531 fs_info(sdp, "write access will be " in gfs2_recover_func() 544 fs_info(sdp, "jid=%u: Replaying journal...\n", jd->jd_jid); in gfs2_recover_func() 561 fs_info(sdp, "jid=%u: Journal replayed in %lus\n", in gfs2_recover_func() 572 fs_info(sdp, "jid=%u: Done\n", jd->jd_jid); in gfs2_recover_func() [all …]
|
D | lock_dlm.c | 639 fs_info(sdp, "recover generation %u block1 %u %u\n", in gfs2_control_func() 726 fs_info(sdp, "recover generation %u jid %d\n", in gfs2_control_func() 746 fs_info(sdp, "recover generation %u done\n", start_gen); in gfs2_control_func() 749 fs_info(sdp, "recover generation %u block2 %u %u\n", in gfs2_control_func() 872 fs_info(sdp, "first mounter control generation %u\n", lvb_gen); in control_mount() 888 fs_info(sdp, "control_mount wait for journal recovery\n"); in control_mount() 900 fs_info(sdp, "control_mount wait1 block %u start %u mount %u " in control_mount() 910 fs_info(sdp, "control_mount wait2 block %u start %u mount %u " in control_mount() 919 fs_info(sdp, "control_mount wait3 block %u start %u mount %u " in control_mount() 970 fs_info(sdp, "control_first_done wait gen %u\n", start_gen); in control_first_done() [all …]
|
D | lops.c | 615 fs_info(sdp, "jid=%u: Replayed %u of %u blocks\n", in buf_lo_after_scan() 746 fs_info(sdp, "jid=%u: Found %u revoke tags\n", in revoke_lo_after_scan() 833 fs_info(sdp, "jid=%u: Replayed %u of %u data blocks\n", in databuf_lo_after_scan()
|
D | ops_fstype.c | 529 fs_info(sdp, "first mount done, others may mount\n"); in gfs2_others_may_mount() 959 fs_info(sdp, "Trying to join cluster \"%s\", \"%s\"\n", proto, table); in gfs2_lm_mount() 993 fs_info(sdp, "unknown hostdata (%s)\n", o); in gfs2_lm_mount() 999 fs_info(sdp, "Now mounting FS...\n"); in gfs2_lm_mount() 1005 fs_info(sdp, "Joined cluster. Now mounting FS...\n"); in gfs2_lm_mount()
|
D | util.h | 28 #define fs_info(fs, fmt, ...) \ macro
|
D | sys.c | 250 fs_info(sdp, "demote interface used\n"); in demote_rq_store()
|
D | quota.c | 1089 fs_info(sdp, "quota %s for %s %u\n", in print_message() 1348 fs_info(sdp, "found %u quota changes\n", found); in gfs2_quota_init()
|
D | bmap.c | 1430 fs_info(sdp, "journal %d mapped with %u extents\n", jd->jd_jid, in gfs2_map_journal_extents()
|
D | inode.c | 556 void *fs_info) in gfs2_initxattrs() argument
|
/linux-4.1.27/arch/s390/hypfs/ |
D | inode.c | 123 struct hypfs_sb_info *fs_info; in hypfs_open() local 134 fs_info = inode->i_sb->s_fs_info; in hypfs_open() 136 mutex_lock(&fs_info->lock); in hypfs_open() 139 mutex_unlock(&fs_info->lock); in hypfs_open() 142 mutex_unlock(&fs_info->lock); in hypfs_open() 171 struct hypfs_sb_info *fs_info = sb->s_fs_info; in hypfs_write_iter() local 184 mutex_lock(&fs_info->lock); in hypfs_write_iter() 185 if (fs_info->last_update == get_seconds()) { in hypfs_write_iter() 203 mutex_unlock(&fs_info->lock); in hypfs_write_iter()
|
/linux-4.1.27/fs/ext3/ |
D | xattr_security.c | 48 void *fs_info) in ext3_initxattrs() argument 51 handle_t *handle = fs_info; in ext3_initxattrs()
|
/linux-4.1.27/fs/ext4/ |
D | xattr_security.c | 52 void *fs_info) in ext4_initxattrs() argument 55 handle_t *handle = fs_info; in ext4_initxattrs()
|
/linux-4.1.27/fs/jffs2/ |
D | security.c | 27 const struct xattr *xattr_array, void *fs_info) in jffs2_initxattrs() argument
|
/linux-4.1.27/fs/ext2/ |
D | xattr_security.c | 46 void *fs_info) in ext2_initxattrs() argument
|
/linux-4.1.27/fs/hfsplus/ |
D | xattr_security.c | 44 void *fs_info) in hfsplus_initxattrs() argument
|
/linux-4.1.27/fs/ |
D | proc_namespace.c | 43 static const struct proc_fs_info fs_info[] = { in show_sb_opts() local 52 for (fs_infop = fs_info; fs_infop->flag; fs_infop++) { in show_sb_opts()
|
/linux-4.1.27/include/trace/events/ |
D | btrfs.h | 81 __entry->generation = root->fs_info->generation; 720 TP_PROTO(struct btrfs_fs_info *fs_info, char *type, u64 val, 723 TP_ARGS(fs_info, type, val, bytes, reserve), 734 memcpy(__entry->fsid, fs_info->fsid, BTRFS_UUID_SIZE);
|
/linux-4.1.27/fs/jfs/ |
D | xattr.c | 1074 void *fs_info) in jfs_initxattrs() argument 1077 tid_t *tid = fs_info; in jfs_initxattrs()
|
/linux-4.1.27/fs/ubifs/ |
D | xattr.c | 626 void *fs_info) in init_xattrs() argument
|
/linux-4.1.27/fs/xfs/ |
D | xfs_iops.c | 66 void *fs_info) in xfs_initxattrs() argument
|
/linux-4.1.27/mm/ |
D | shmem.c | 2516 void *fs_info) in shmem_initxattrs() argument
|
/linux-4.1.27/fs/ocfs2/ |
D | xattr.c | 7271 void *fs_info) in ocfs2_initxattrs() argument
|