/linux/fs/btrfs/tests/ |
A D | inode-tests.c | 258 BTRFS_I(inode)->root = root; in test_btrfs_get_extent() 853 BTRFS_I(inode)->root = root; in test_hole_first() 942 BTRFS_I(inode)->root = root; in test_extent_accounting() 954 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting() 969 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting() 986 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting() 1002 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting() 1020 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting() 1037 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting() 1054 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting() [all …]
|
A D | btrfs-tests.c | 62 BTRFS_I(inode)->location.type = BTRFS_INODE_ITEM_KEY; in btrfs_new_test_inode() 63 BTRFS_I(inode)->location.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_new_test_inode() 64 BTRFS_I(inode)->location.offset = 0; in btrfs_new_test_inode()
|
A D | extent-io-tests.c | 80 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()
|
/linux/fs/btrfs/ |
A D | inode.c | 3804 &BTRFS_I(inode)->flags, &BTRFS_I(inode)->ro_flags); in btrfs_read_locked_inode() 3847 BTRFS_I(inode)->last_unlink_trans = BTRFS_I(inode)->last_trans; in btrfs_read_locked_inode() 3855 BTRFS_I(inode)->last_reflink_trans = BTRFS_I(inode)->last_trans; in btrfs_read_locked_inode() 6757 err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, BTRFS_I(inode), in btrfs_mknod() 6967 err = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), in btrfs_mkdir() 9496 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename_exchange() 9504 ret = btrfs_add_link(trans, BTRFS_I(old_dir), BTRFS_I(new_inode), in btrfs_rename_exchange() 9518 btrfs_log_new_name(trans, BTRFS_I(old_inode), BTRFS_I(old_dir), in btrfs_rename_exchange() 9524 btrfs_log_new_name(trans, BTRFS_I(new_inode), BTRFS_I(new_dir), in btrfs_rename_exchange() 9793 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename() [all …]
|
A D | reflink.c | 21 struct btrfs_root *root = BTRFS_I(inode)->root; in clone_finish_inode_update() 174 struct btrfs_root *root = BTRFS_I(dst)->root; in clone_copy_inline_extent() 188 key.objectid = btrfs_ino(BTRFS_I(dst)); in clone_copy_inline_extent() 203 if (key.objectid == btrfs_ino(BTRFS_I(dst)) && in clone_copy_inline_extent() 361 key.objectid = btrfs_ino(BTRFS_I(src)); in btrfs_clone() 409 key.objectid != btrfs_ino(BTRFS_I(src))) in btrfs_clone() 449 new_key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_clone() 579 &BTRFS_I(inode)->runtime_flags); in btrfs_clone() 622 down_write(&BTRFS_I(inode1)->i_mmap_lock); in btrfs_double_mmap_lock() 628 up_write(&BTRFS_I(inode1)->i_mmap_lock); in btrfs_double_mmap_unlock() [all …]
|
A D | props.c | 231 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_prop_iterator() 246 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_load_inode_props() 247 u64 ino = btrfs_ino(BTRFS_I(inode)); in btrfs_load_inode_props() 278 BTRFS_I(inode)->flags &= ~BTRFS_INODE_COMPRESS; in prop_compression_apply() 288 BTRFS_I(inode)->flags &= ~BTRFS_INODE_COMPRESS; in prop_compression_apply() 307 BTRFS_I(inode)->flags |= BTRFS_INODE_COMPRESS; in prop_compression_apply() 308 BTRFS_I(inode)->prop_compress = type; in prop_compression_apply() 315 switch (BTRFS_I(inode)->prop_compress) { in prop_compression_extract() 341 struct btrfs_root *root = BTRFS_I(inode)->root; in inherit_props() 348 &BTRFS_I(parent)->runtime_flags)) in inherit_props() [all …]
|
A D | export.c | 35 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 36 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh() 42 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh() 44 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh() 138 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_get_parent() 150 if (btrfs_ino(BTRFS_I(dir)) == BTRFS_FIRST_FREE_OBJECTID) { in btrfs_get_parent() 156 key.objectid = btrfs_ino(BTRFS_I(dir)); in btrfs_get_parent() 207 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_get_name() 220 ino = btrfs_ino(BTRFS_I(inode)); in btrfs_get_name() 227 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name() [all …]
|
A D | xattr.c | 27 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_getxattr() 83 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setxattr() 101 btrfs_ino(BTRFS_I(inode)), name, name_len, -1); in btrfs_setxattr() 121 btrfs_ino(BTRFS_I(inode)), name, name_len, 0); in btrfs_setxattr() 218 &BTRFS_I(inode)->runtime_flags); in btrfs_setxattr() 230 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setxattr_trans() 266 ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); in btrfs_setxattr_trans() 278 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_listxattr() 288 key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_listxattr() 405 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_xattr_handler_set_prop() [all …]
|
A D | file.c | 1759 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write() 1780 BTRFS_I(inode), pages, in btrfs_buffered_write() 1862 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write() 1878 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write() 2125 &BTRFS_I(inode)->runtime_flags)) in btrfs_release_file() 2142 atomic_inc(&BTRFS_I(inode)->sync_writers); in start_ordered_ops() 2144 atomic_dec(&BTRFS_I(inode)->sync_writers); in start_ordered_ops() 2233 &BTRFS_I(inode)->runtime_flags); in btrfs_sync_file() 2300 &BTRFS_I(inode)->runtime_flags); in btrfs_sync_file() 3044 ret = btrfs_truncate_block(BTRFS_I(inode), in btrfs_punch_hole() [all …]
|
A D | ioctl.c | 145 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_sync_inode_flags_to_i_flags() 221 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_fileattr_set() 515 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol() 1560 &BTRFS_I(inode)->runtime_flags)) in btrfs_defrag_file() 1628 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_resize() 1823 BTRFS_I(src_inode)->root, in __btrfs_ioctl_snap_create() 1925 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_getflags() 2213 root = btrfs_grab_root(BTRFS_I(inode)->root); in search_ioctl() 2675 fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_ioctl_get_subvol_info() 2870 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_ioctl_snap_destroy() [all …]
|
A D | tree-log.c | 1195 BTRFS_I(victim_parent), in __add_inode_ref() 1455 ret = btrfs_unlink_inode(trans, BTRFS_I(dir), BTRFS_I(other_inode), in add_link() 1470 ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), in add_link() 1577 BTRFS_I(dir), in add_inode_ref() 1578 BTRFS_I(inode), in add_inode_ref() 1602 BTRFS_I(dir), in add_inode_ref() 1603 BTRFS_I(inode), in add_inode_ref() 1943 ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), name, in insert_one_name() 2694 BTRFS_I(inode), in replay_one_buffer() 2701 root, BTRFS_I(inode)); in replay_one_buffer() [all …]
|
A D | delayed-inode.c | 1511 delayed_node = btrfs_get_delayed_node(BTRFS_I(inode)); in btrfs_readdir_get_delayed_items() 1660 BTRFS_I(inode)->generation); in fill_stack_inode_item() 1666 BTRFS_I(inode)->ro_flags); in fill_stack_inode_item() 1686 BTRFS_I(inode)->i_otime.tv_sec); in fill_stack_inode_item() 1688 BTRFS_I(inode)->i_otime.tv_nsec); in fill_stack_inode_item() 1713 btrfs_inode_set_file_extent_range(BTRFS_I(inode), 0, in btrfs_fill_inode() 1726 &BTRFS_I(inode)->flags, &BTRFS_I(inode)->ro_flags); in btrfs_fill_inode() 1737 BTRFS_I(inode)->i_otime.tv_sec = in btrfs_fill_inode() 1739 BTRFS_I(inode)->i_otime.tv_nsec = in btrfs_fill_inode() 1742 inode->i_generation = BTRFS_I(inode)->generation; in btrfs_fill_inode() [all …]
|
A D | verity.c | 578 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_begin_enable_verity() 627 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_end_enable_verity() 670 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_DESC_ITEM_KEY, 0, in btrfs_get_verity_descriptor() 687 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_DESC_ITEM_KEY, 1, in btrfs_get_verity_descriptor() 753 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_MERKLE_ITEM_KEY, off, in btrfs_read_merkle_tree_page() 803 return write_key_bytes(BTRFS_I(inode), BTRFS_VERITY_MERKLE_ITEM_KEY, in btrfs_write_merkle_tree_block()
|
A D | btrfs_inode.h | 258 static inline struct btrfs_inode *BTRFS_I(const struct inode *inode) in BTRFS_I() function 277 unsigned long h = btrfs_inode_hash(inode->i_ino, BTRFS_I(inode)->root); in btrfs_insert_inode_hash() 315 return btrfs_ino(BTRFS_I(inode)) != BTRFS_BTREE_INODE_OBJECTID; in is_data_inode()
|
A D | relocation.c | 1017 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location() 1019 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location() 1126 btrfs_drop_extent_cache(BTRFS_I(inode), in replace_file_extents() 1128 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1525 ino = btrfs_ino(BTRFS_I(inode)); in invalidate_extent_cache() 2945 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_one_page() 3007 clear_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_one_page() 3032 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_one_page() 3066 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_file_extent_cluster() 3838 BTRFS_I(inode)->index_cnt = group->start; in create_reloc_inode() [all …]
|
A D | ordered-data.c | 295 tree = &BTRFS_I(entry->inode)->ordered_tree; in btrfs_add_ordered_sum() 516 trace_btrfs_ordered_extent_put(BTRFS_I(entry->inode), entry); in btrfs_put_ordered_extent() 727 struct btrfs_inode *inode = BTRFS_I(entry->inode); in btrfs_start_ordered_extent() 781 ordered = btrfs_lookup_first_ordered_extent(BTRFS_I(inode), end); in btrfs_wait_ordered_range() 1052 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in clone_ordered_extent() 1079 ret = btrfs_add_ordered_extent_compress(BTRFS_I(inode), in clone_ordered_extent() 1083 ret = btrfs_add_ordered_extent_dio(BTRFS_I(inode), file_offset, in clone_ordered_extent() 1086 ret = btrfs_add_ordered_extent(BTRFS_I(inode), file_offset, in clone_ordered_extent() 1097 struct btrfs_ordered_inode_tree *tree = &BTRFS_I(inode)->ordered_tree; in btrfs_split_ordered_extent()
|
A D | free-space-cache.c | 235 ret = btrfs_orphan_add(trans, BTRFS_I(inode)); in btrfs_remove_free_space_inode() 293 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_truncate_free_space_cache() 323 btrfs_i_size_write(BTRFS_I(inode), 0); in btrfs_truncate_free_space_cache() 454 btrfs_err(BTRFS_I(inode)->root->fs_info, in io_ctl_prepare_pages() 460 btrfs_err(BTRFS_I(inode)->root->fs_info, in io_ctl_prepare_pages() 748 if (!BTRFS_I(inode)->generation) { in __load_free_space_cache() 758 BTRFS_I(inode)->generation, generation); in __load_free_space_cache() 1128 BTRFS_I(inode)->generation = trans->transid; in update_cache_item() 1265 BTRFS_I(inode)->generation = 0; in __btrfs_wait_cache_io() 1351 BTRFS_I(inode)->generation = 0; in __btrfs_write_out_cache() [all …]
|
A D | transaction.c | 1031 atomic_inc(&BTRFS_I(fs_info->btree_inode)->sync_writers); in btrfs_write_marked_extents() 1067 atomic_dec(&BTRFS_I(fs_info->btree_inode)->sync_writers); in btrfs_write_marked_extents() 1601 parent_root = BTRFS_I(parent_inode)->root; in create_pending_snapshot() 1610 ret = btrfs_set_inode_index(BTRFS_I(parent_inode), &index); in create_pending_snapshot() 1615 btrfs_ino(BTRFS_I(parent_inode)), in create_pending_snapshot() 1711 btrfs_ino(BTRFS_I(parent_inode)), index, in create_pending_snapshot() 1745 dentry->d_name.len, BTRFS_I(parent_inode), in create_pending_snapshot() 1754 btrfs_i_size_write(BTRFS_I(parent_inode), parent_inode->i_size + in create_pending_snapshot() 1758 ret = btrfs_update_inode_fallback(trans, parent_root, BTRFS_I(parent_inode)); in create_pending_snapshot()
|
A D | extent_io.c | 121 btrfs_debug_rl(BTRFS_I(inode)->root->fs_info, in __btrfs_debug_check_extent_io_range() 123 caller, btrfs_ino(BTRFS_I(inode)), isize, start, end); in __btrfs_debug_check_extent_io_range() 2781 set_extent_uptodate(&BTRFS_I(inode)->io_tree, in submit_read_repair() 2785 unlock_extent_cached_atomic(&BTRFS_I(inode)->io_tree, in submit_read_repair() 2802 inode = BTRFS_I(page->mapping->host); in end_extent_writepage() 3024 tree = &BTRFS_I(inode)->io_tree; in end_bio_extent_readpage() 3025 failure_tree = &BTRFS_I(inode)->io_failure_tree; in end_bio_extent_readpage() 3061 clean_io_failure(BTRFS_I(inode)->root->fs_info, in end_bio_extent_readpage() 3064 btrfs_ino(BTRFS_I(inode)), 0); in end_bio_extent_readpage() 5005 &BTRFS_I(inode)->runtime_flags)) in extent_write_cache_pages() [all …]
|
A D | disk-io.c | 389 io_tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages() 885 root = BTRFS_I(bvec->bv_page->mapping->host)->root; in btree_csum_one_bio() 932 } else if (!should_async_write(fs_info, BTRFS_I(inode))) { in btrfs_submit_metadata_bio() 990 fs_info = BTRFS_I(mapping->host)->root->fs_info; in btree_writepages() 1013 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage() 1017 btrfs_warn(BTRFS_I(page->mapping->host)->root->fs_info, in btree_invalidatepage() 2263 RB_CLEAR_NODE(&BTRFS_I(inode)->rb_node); in btrfs_init_btree_inode() 2264 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode() 2266 BTRFS_I(inode)->io_tree.track_uptodate = false; in btrfs_init_btree_inode() 2267 extent_map_tree_init(&BTRFS_I(inode)->extent_tree); in btrfs_init_btree_inode() [all …]
|
A D | compression.c | 314 ret = check_compressed_csum(BTRFS_I(inode), bio, in end_compressed_bio_read() 381 btrfs_writepage_endio_finish_ordered(BTRFS_I(inode), NULL, in finish_compressed_bio_write() 666 em_tree = &BTRFS_I(inode)->extent_tree; in add_ra_bio_pages() 667 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages() 814 em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_submit_compressed_read()
|
A D | file-item.c | 368 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_lookup_bio_sums() 379 if (!fs_info->csum_root || (BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM)) in btrfs_lookup_bio_sums() 429 if (btrfs_is_free_space_inode(BTRFS_I(inode))) { in btrfs_lookup_bio_sums() 471 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
|
A D | super.c | 1530 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options() 1532 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options() 1600 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol() 2338 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs() 2340 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
|
A D | zoned.c | 1522 ordered = btrfs_lookup_ordered_extent(BTRFS_I(inode), file_offset); in btrfs_record_physical_zoned() 1534 struct btrfs_inode *inode = BTRFS_I(ordered->inode); in btrfs_rewrite_logical_zoned()
|
/linux/include/trace/events/ |
A D | btrfs.h | 221 __entry->ino = btrfs_ino(BTRFS_I(inode)); 228 BTRFS_I(inode)->root->root_key.objectid; 620 __entry->ino = btrfs_ino(BTRFS_I(inode)); 631 BTRFS_I(inode)->root->root_key.objectid; 702 __entry->ino = btrfs_ino(BTRFS_I(inode)); 706 BTRFS_I(inode)->root->root_key.objectid; 1539 BTRFS_I(inode)->root->root_key.objectid; 1540 __entry->ino = btrfs_ino(BTRFS_I(inode)); 1940 __entry->ino = btrfs_ino(BTRFS_I(inode)); 1942 BTRFS_I(inode)->root->root_key.objectid; [all …]
|