/kernel/linux/linux-5.10/fs/btrfs/tests/ |
H A D | inode-tests.c | 236 BTRFS_I(inode)->location.type = BTRFS_INODE_ITEM_KEY; in test_btrfs_get_extent() 237 BTRFS_I(inode)->location.objectid = BTRFS_FIRST_FREE_OBJECTID; in test_btrfs_get_extent() 238 BTRFS_I(inode)->location.offset = 0; in test_btrfs_get_extent() 263 BTRFS_I(inode)->root = root; in test_btrfs_get_extent() 264 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, sectorsize); in test_btrfs_get_extent() 275 btrfs_drop_extent_cache(BTRFS_I(inode), 0, (u64)-1, 0); in test_btrfs_get_extent() 284 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, (u64)-1); in test_btrfs_get_extent() 306 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent() 334 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent() 357 em = btrfs_get_extent(BTRFS_I(inod in test_btrfs_get_extent() [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | reflink.c | 28 struct btrfs_root *root = BTRFS_I(inode)->root; in clone_finish_inode_update() 43 btrfs_inode_safe_disk_i_size_write(BTRFS_I(inode), 0); in clone_finish_inode_update() 46 ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); in clone_finish_inode_update() 179 struct btrfs_root *root = BTRFS_I(dst)->root; in clone_copy_inline_extent() 188 ret = copy_inline_to_page(BTRFS_I(dst), new_key->offset, in clone_copy_inline_extent() 193 key.objectid = btrfs_ino(BTRFS_I(dst)); in clone_copy_inline_extent() 208 if (key.objectid == btrfs_ino(BTRFS_I(dst)) && in clone_copy_inline_extent() 273 ret = btrfs_drop_extents(trans, root, BTRFS_I(dst), &drop_args); in clone_copy_inline_extent() 284 btrfs_update_inode_bytes(BTRFS_I(dst), datal, drop_args.bytes_found); in clone_copy_inline_extent() 285 btrfs_set_inode_full_sync(BTRFS_I(ds in clone_copy_inline_extent() [all...] |
H A D | props.c | 139 set_bit(BTRFS_INODE_HAS_PROPS, &BTRFS_I(inode)->runtime_flags); in btrfs_set_prop() 261 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_prop_iterator() 268 handler->xattr_name, btrfs_ino(BTRFS_I(inode)), in inode_prop_iterator() 271 set_bit(BTRFS_INODE_HAS_PROPS, &BTRFS_I(inode)->runtime_flags); in inode_prop_iterator() 276 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_load_inode_props() 277 u64 ino = btrfs_ino(BTRFS_I(inode)); in btrfs_load_inode_props() 309 BTRFS_I(inode)->flags &= ~BTRFS_INODE_COMPRESS; in prop_compression_apply() 310 BTRFS_I(inode)->flags &= ~BTRFS_INODE_NOCOMPRESS; in prop_compression_apply() 311 BTRFS_I(inode)->prop_compress = BTRFS_COMPRESS_NONE; in prop_compression_apply() 318 BTRFS_I(inod in prop_compression_apply() [all...] |
H A D | xattr.c | 31 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_getxattr() 42 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)), in btrfs_getxattr() 87 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setxattr() 105 btrfs_ino(BTRFS_I(inode)), name, name_len, -1); in btrfs_setxattr() 125 btrfs_ino(BTRFS_I(inode)), name, name_len, 0); in btrfs_setxattr() 136 ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(BTRFS_I(inode)), in btrfs_setxattr() 220 &BTRFS_I(inode)->runtime_flags); in btrfs_setxattr() 221 clear_bit(BTRFS_INODE_NO_XATTRS, &BTRFS_I(inode)->runtime_flags); in btrfs_setxattr() 232 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setxattr_trans() 268 ret = btrfs_update_inode(trans, root, BTRFS_I(inod in btrfs_setxattr_trans() [all...] |
H A D | inode.c | 2852 fixup->inode = BTRFS_I(inode); in btrfs_writepage_cow_fixup() 3002 return insert_reserved_file_extent(trans, BTRFS_I(oe->inode), in insert_ordered_extent_file_extent() 3014 struct btrfs_inode *inode = BTRFS_I(ordered_extent->inode); in btrfs_finish_one_ordered() 3605 ret = btrfs_drop_verity_items(BTRFS_I(inode)); in btrfs_orphan_cleanup() 3729 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_read_locked_inode() 3748 memcpy(&location, &BTRFS_I(inode)->location, sizeof(location)); in btrfs_read_locked_inode() 3768 btrfs_i_size_write(BTRFS_I(inode), btrfs_inode_size(leaf, inode_item)); in btrfs_read_locked_inode() 3769 btrfs_inode_set_file_extent_range(BTRFS_I(inode), 0, in btrfs_read_locked_inode() 3781 BTRFS_I(inode)->i_otime.tv_sec = in btrfs_read_locked_inode() 3783 BTRFS_I(inod in btrfs_read_locked_inode() [all...] |
H A D | file.c | 1146 !(BTRFS_I(inode)->flags & (BTRFS_INODE_NODATACOW | BTRFS_INODE_PREALLOC))) in btrfs_write_check() 1167 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, end_pos); in btrfs_write_check() 1200 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write() 1251 ret = btrfs_check_data_free_space(BTRFS_I(inode), in btrfs_buffered_write() 1267 can_nocow = btrfs_check_nocow_lock(BTRFS_I(inode), pos, in btrfs_buffered_write() 1283 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in btrfs_buffered_write() 1288 btrfs_free_reserved_data_space(BTRFS_I(inode), in btrfs_buffered_write() 1292 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write() 1303 btrfs_delalloc_release_extents(BTRFS_I(inode), reserve_bytes); in btrfs_buffered_write() 1315 btrfs_delalloc_release_extents(BTRFS_I(inod in btrfs_buffered_write() [all...] |
H A D | export.c | 37 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 38 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh() 44 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh() 46 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh() 151 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_get_parent() 163 if (btrfs_ino(BTRFS_I(dir)) == BTRFS_FIRST_FREE_OBJECTID) { in btrfs_get_parent() 169 key.objectid = btrfs_ino(BTRFS_I(dir)); in btrfs_get_parent() 220 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_get_name() 233 ino = btrfs_ino(BTRFS_I(inode)); in btrfs_get_name() 240 key.objectid = BTRFS_I(inod in btrfs_get_name() [all...] |
H A D | tree-log.c | 677 btrfs_ino(BTRFS_I(inode)), start, 0); in replay_one_extent() 711 ret = btrfs_drop_extents(trans, root, BTRFS_I(inode), &drop_args); in replay_one_extent() 886 ret = btrfs_inode_set_file_extent_range(BTRFS_I(inode), start, in replay_one_extent() 892 btrfs_update_inode_bytes(BTRFS_I(inode), nbytes, drop_args.bytes_found); in replay_one_extent() 893 ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); in replay_one_extent() 957 ret = unlink_inode_for_log_replay(trans, dir, BTRFS_I(inode), &name); in drop_one_dir_item() 1173 BTRFS_I(victim_parent), in __add_inode_ref() 1319 ret = unlink_inode_for_log_replay(trans, BTRFS_I(dir), in unlink_old_inode_refs() 1420 ret = inode_in_dir(root, path, btrfs_ino(BTRFS_I(dir)), in add_inode_ref() 1421 btrfs_ino(BTRFS_I(inod in add_inode_ref() [all...] |
H A D | defrag.c | 272 clear_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags); in __btrfs_run_defrag_inode() 613 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent() 614 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() 616 const u32 sectorsize = BTRFS_I(inode)->root->fs_info->sectorsize; in defrag_lookup_extent() 647 em = defrag_get_extent(BTRFS_I(inode), start, newer_than); in defrag_lookup_extent() 1301 btrfs_inode_lock(BTRFS_I(inode), 0); in btrfs_defrag_file() 1304 btrfs_inode_unlock(BTRFS_I(inode), 0); in btrfs_defrag_file() 1308 btrfs_inode_unlock(BTRFS_I(inode), 0); in btrfs_defrag_file() 1312 BTRFS_I(inode)->defrag_compress = compress_type; in btrfs_defrag_file() 1313 ret = defrag_one_cluster(BTRFS_I(inod in btrfs_defrag_file() [all...] |
H A D | delayed-inode.c | 1680 delayed_node = btrfs_get_delayed_node(BTRFS_I(inode)); in btrfs_readdir_get_delayed_items() 1688 btrfs_inode_unlock(BTRFS_I(inode), BTRFS_ILOCK_SHARED); in btrfs_readdir_get_delayed_items() 1689 btrfs_inode_lock(BTRFS_I(inode), 0); in btrfs_readdir_get_delayed_items() 1821 btrfs_set_stack_inode_size(inode_item, BTRFS_I(inode)->disk_i_size); in fill_stack_inode_item() 1826 BTRFS_I(inode)->generation); in fill_stack_inode_item() 1831 flags = btrfs_inode_combine_flags(BTRFS_I(inode)->flags, in fill_stack_inode_item() 1832 BTRFS_I(inode)->ro_flags); in fill_stack_inode_item() 1852 BTRFS_I(inode)->i_otime.tv_sec); in fill_stack_inode_item() 1854 BTRFS_I(inode)->i_otime.tv_nsec); in fill_stack_inode_item() 1859 struct btrfs_fs_info *fs_info = BTRFS_I(inod in btrfs_fill_inode() [all...] |
H A D | verity.c | 584 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_begin_enable_verity() 633 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_end_enable_verity() 675 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_DESC_ITEM_KEY, 0, in btrfs_get_verity_descriptor() 692 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_DESC_ITEM_KEY, 1, in btrfs_get_verity_descriptor() 765 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_MERKLE_ITEM_KEY, off, in btrfs_read_merkle_tree_page() 801 return write_key_bytes(BTRFS_I(inode), BTRFS_VERITY_MERKLE_ITEM_KEY, in btrfs_write_merkle_tree_block()
|
H A D | relocation.c | 1018 struct btrfs_root *root = BTRFS_I(reloc_inode)->root; in get_new_location() 1028 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location() 1030 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location() 1121 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents() 1122 btrfs_add_delayed_iput(BTRFS_I(inode)); in replace_file_extents() 1125 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents() 1134 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1140 btrfs_drop_extent_map_range(BTRFS_I(inode), in replace_file_extents() 1142 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1186 btrfs_add_delayed_iput(BTRFS_I(inod in replace_file_extents() [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | inode.c | 188 key.objectid = btrfs_ino(BTRFS_I(inode)); in insert_inline_extent() 245 ret = btrfs_inode_set_file_extent_range(BTRFS_I(inode), start, size); in insert_inline_extent() 258 BTRFS_I(inode)->disk_i_size = inode->i_size; in insert_inline_extent() 494 inode_should_defrag(BTRFS_I(inode), start, end, end - start + 1, in compress_file_range() 537 (start > 0 || end + 1 < BTRFS_I(inode)->disk_i_size)) in compress_file_range() 550 if (inode_need_compress(BTRFS_I(inode), start, end)) { in compress_file_range() 559 if (BTRFS_I(inode)->defrag_compress) in compress_file_range() 560 compress_type = BTRFS_I(inode)->defrag_compress; in compress_file_range() 561 else if (BTRFS_I(inode)->prop_compress) in compress_file_range() 562 compress_type = BTRFS_I(inod in compress_file_range() [all...] |
H A D | props.c | 109 set_bit(BTRFS_INODE_HAS_PROPS, &BTRFS_I(inode)->runtime_flags); in btrfs_set_prop() 231 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_prop_iterator() 238 handler->xattr_name, btrfs_ino(BTRFS_I(inode)), in inode_prop_iterator() 241 set_bit(BTRFS_INODE_HAS_PROPS, &BTRFS_I(inode)->runtime_flags); 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() 273 BTRFS_I(inode)->flags |= BTRFS_INODE_NOCOMPRESS; in prop_compression_apply() 274 BTRFS_I(inode)->flags &= ~BTRFS_INODE_COMPRESS; in prop_compression_apply() 275 BTRFS_I(inode)->prop_compress = BTRFS_COMPRESS_NONE; in prop_compression_apply() 292 BTRFS_I(inod in prop_compression_apply() [all...] |
H A D | reflink.c | 20 struct btrfs_root *root = BTRFS_I(inode)->root; in clone_finish_inode_update() 175 struct btrfs_root *root = BTRFS_I(dst)->root; in clone_copy_inline_extent() 183 ret = copy_inline_to_page(BTRFS_I(dst), new_key->offset, 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() 276 set_bit(BTRFS_INODE_NEEDS_FULL_SYNC, &BTRFS_I(dst)->runtime_flags); in clone_copy_inline_extent() 277 ret = btrfs_inode_set_file_extent_range(BTRFS_I(dst), 0, aligned_end); in clone_copy_inline_extent() 312 ret = copy_inline_to_page(BTRFS_I(dst), new_key->offset, in clone_copy_inline_extent() 357 key.objectid = btrfs_ino(BTRFS_I(src)); in btrfs_clone() 375 ret = btrfs_search_slot(NULL, BTRFS_I(sr in btrfs_clone() [all...] |
H 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() 228 key.objectid = BTRFS_I(inod in btrfs_get_name() [all...] |
H A D | file.c | 297 clear_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags); in __btrfs_run_defrag_inode() 313 btrfs_requeue_inode_defrag(BTRFS_I(inode), defrag); in __btrfs_run_defrag_inode() 322 btrfs_requeue_inode_defrag(BTRFS_I(inode), defrag); in __btrfs_run_defrag_inode() 1023 ret = __btrfs_drop_extents(trans, root, BTRFS_I(inode), path, start, in btrfs_drop_extents() 1619 ret = btrfs_check_data_free_space(BTRFS_I(inode), in btrfs_buffered_write() 1623 if (btrfs_check_nocow_lock(BTRFS_I(inode), pos, in btrfs_buffered_write() 1645 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in btrfs_buffered_write() 1649 btrfs_free_reserved_data_space(BTRFS_I(inode), in btrfs_buffered_write() 1653 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write() 1668 btrfs_delalloc_release_extents(BTRFS_I(inod in btrfs_buffered_write() [all...] |
H A D | xattr.c | 27 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_getxattr() 38 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)), 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() 132 ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(BTRFS_I(inode)), in btrfs_setxattr() 218 &BTRFS_I(inode)->runtime_flags); in btrfs_setxattr() 219 clear_bit(BTRFS_INODE_NO_XATTRS, &BTRFS_I(inode)->runtime_flags); in btrfs_setxattr() 230 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setxattr_trans() 278 struct btrfs_root *root = BTRFS_I(inod in btrfs_listxattr() [all...] |
H A D | ioctl.c | 138 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_sync_inode_flags_to_i_flags() 159 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_getflags() 200 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_setflags() 399 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_fsgetxattr() 412 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_fssetxattr() 588 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol() 734 ret = btrfs_set_inode_index(BTRFS_I(dir), &index); in create_subvol() 740 ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key, in create_subvol() 747 btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2); in create_subvol() 755 btrfs_ino(BTRFS_I(di in create_subvol() [all...] |
H A D | tree-log.c | 625 btrfs_ino(BTRFS_I(inode)), start, 0); in replay_one_extent() 828 ret = btrfs_inode_set_file_extent_range(BTRFS_I(inode), start, in replay_one_extent() 884 ret = btrfs_unlink_inode(trans, root, dir, BTRFS_I(inode), name, in drop_one_dir_item() 1125 BTRFS_I(victim_parent), in __add_inode_ref() 1287 ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), in unlink_old_inode_refs() 1324 const u64 parent_id = btrfs_ino(BTRFS_I(dir)); in btrfs_inode_ref_exists() 1331 key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_inode_ref_exists() 1338 ret = btrfs_search_slot(NULL, BTRFS_I(inode)->root, &key, path, 0, 0); in btrfs_inode_ref_exists() 1372 btrfs_ino(BTRFS_I(dir)), in add_link() 1394 ret = btrfs_unlink_inode(trans, root, BTRFS_I(di in add_link() [all...] |
H A D | relocation.c | 997 struct btrfs_root *root = BTRFS_I(reloc_inode)->root; in get_new_location() 1007 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location() 1009 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location() 1100 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents() 1104 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents() 1111 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1116 btrfs_drop_extent_cache(BTRFS_I(inode), in replace_file_extents() 1118 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1513 ino = btrfs_ino(BTRFS_I(inode)); in invalidate_extent_cache() 1554 lock_extent(&BTRFS_I(inod in invalidate_extent_cache() [all...] |
H A D | delayed-inode.c | 1614 delayed_node = btrfs_get_delayed_node(BTRFS_I(inode)); in btrfs_readdir_get_delayed_items() 1756 btrfs_set_stack_inode_size(inode_item, BTRFS_I(inode)->disk_i_size); in fill_stack_inode_item() 1761 BTRFS_I(inode)->generation); in fill_stack_inode_item() 1766 btrfs_set_stack_inode_flags(inode_item, BTRFS_I(inode)->flags); in fill_stack_inode_item() 1785 BTRFS_I(inode)->i_otime.tv_sec); in fill_stack_inode_item() 1787 BTRFS_I(inode)->i_otime.tv_nsec); in fill_stack_inode_item() 1792 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_fill_inode() 1796 delayed_node = btrfs_get_delayed_node(BTRFS_I(inode)); in btrfs_fill_inode() 1811 btrfs_i_size_write(BTRFS_I(inode), btrfs_stack_inode_size(inode_item)); in btrfs_fill_inode() 1812 btrfs_inode_set_file_extent_range(BTRFS_I(inod in btrfs_fill_inode() [all...] |
H A D | btrfs_inode.h | 240 static inline struct btrfs_inode *BTRFS_I(const struct inode *inode) in BTRFS_I() function 259 unsigned long h = btrfs_inode_hash(inode->i_ino, BTRFS_I(inode)->root); in btrfs_insert_inode_hash() 297 return btrfs_ino(BTRFS_I(inode)) != BTRFS_BTREE_INODE_OBJECTID; in is_data_inode()
|
/kernel/linux/linux-6.6/fs/btrfs/tests/ |
H A D | inode-tests.c | 260 BTRFS_I(inode)->root = root; in test_btrfs_get_extent() 261 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, sectorsize); in test_btrfs_get_extent() 272 btrfs_drop_extent_map_range(BTRFS_I(inode), 0, (u64)-1, false); in test_btrfs_get_extent() 281 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, (u64)-1); in test_btrfs_get_extent() 319 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent() 342 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent() 370 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent() 399 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent() 421 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent() 455 em = btrfs_get_extent(BTRFS_I(inod in test_btrfs_get_extent() [all...] |
H A D | extent-map-tests.c | 585 em_tree = &BTRFS_I(inode)->extent_tree; in test_case_5() 625 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5() 626 ret = validate_range(&BTRFS_I(inode)->extent_tree, 0); in test_case_5() 633 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5() 634 ret = validate_range(&BTRFS_I(inode)->extent_tree, 1); in test_case_5() 641 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5() 642 ret = validate_range(&BTRFS_I(inode)->extent_tree, 2); in test_case_5() 649 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5() 650 ret = validate_range(&BTRFS_I(inode)->extent_tree, 3); in test_case_5() 731 em_tree = &BTRFS_I(inod in test_case_7() [all...] |