Home
last modified time | relevance | path

Searched refs:BTRFS_I (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.15/fs/btrfs/tests/
H A Dinode-tests.c260 BTRFS_I(inode)->root = root; in test_btrfs_get_extent()
831 BTRFS_I(inode)->root = root; in test_hole_first()
920 BTRFS_I(inode)->root = root; in test_extent_accounting()
932 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
947 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
964 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
980 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
998 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1015 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1032 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
[all …]
H A Dextent-map-tests.c1155 BTRFS_I(inode)->root = root; in btrfs_test_extent_map()
1157 ret = test_case_1(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
1160 ret = test_case_2(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
1163 ret = test_case_3(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
1166 ret = test_case_4(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
1169 ret = test_case_5(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
1172 ret = test_case_6(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
1175 ret = test_case_7(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
1178 ret = test_case_8(fs_info, BTRFS_I(inode)); in btrfs_test_extent_map()
H A Dbtrfs-tests.c66 btrfs_set_inode_number(BTRFS_I(inode), BTRFS_FIRST_FREE_OBJECTID); in btrfs_new_test_inode()
H A Dextent-io-tests.c146 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()
147 BTRFS_I(inode)->root = root; in test_find_delalloc()
/linux-6.15/fs/btrfs/
H A Dxattr.c31 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_getxattr()
87 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setxattr()
122 btrfs_assert_inode_locked(BTRFS_I(inode)); in btrfs_setxattr()
124 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()
280 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_listxattr()
291 key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_listxattr()
376 if (btrfs_root_readonly(BTRFS_I(inode)->root)) in btrfs_xattr_handler_set()
420 if (btrfs_root_readonly(BTRFS_I(inode)->root)) in btrfs_xattr_handler_set_security()
[all …]
H A Ddirect-io.c329 btrfs_delalloc_release_metadata(BTRFS_I(inode), in btrfs_get_blocks_direct_write()
413 &BTRFS_I(inode)->runtime_flags)) { in btrfs_dio_iomap_begin()
438 ret = btrfs_check_data_free_space(BTRFS_I(inode), in btrfs_dio_iomap_begin()
443 else if (ret && !(BTRFS_I(inode)->flags & in btrfs_dio_iomap_begin()
544 btrfs_free_reserved_data_space(BTRFS_I(inode), in btrfs_dio_iomap_begin()
598 btrfs_free_reserved_data_space(BTRFS_I(inode), in btrfs_dio_iomap_begin()
618 unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
719 bbio->inode = BTRFS_I(iter->inode); in btrfs_dio_submit_io()
826 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
833 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
[all …]
H A Dreflink.c42 btrfs_inode_safe_disk_i_size_write(BTRFS_I(inode), 0); in clone_finish_inode_update()
45 ret = btrfs_update_inode(trans, BTRFS_I(inode)); in clone_finish_inode_update()
367 key.objectid = btrfs_ino(BTRFS_I(src)); in btrfs_clone()
402 ret = btrfs_next_leaf(BTRFS_I(src)->root, path); in btrfs_clone()
414 key.objectid != btrfs_ino(BTRFS_I(src))) in btrfs_clone()
461 new_key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_clone()
552 BTRFS_I(src)->last_reflink_trans = trans->transid; in btrfs_clone()
601 btrfs_set_inode_full_sync(BTRFS_I(inode)); in btrfs_clone()
664 struct btrfs_root *root_dst = BTRFS_I(dst)->root; in btrfs_extent_same()
683 BTRFS_I(dst), dst_loff); in btrfs_extent_same()
[all …]
H A Dfile.c1186 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write()
1294 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write()
1306 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write()
1310 btrfs_delalloc_release_space(BTRFS_I(inode), in btrfs_buffered_write()
1335 btrfs_inode_lock(BTRFS_I(inode), 0); in btrfs_encoded_write()
1354 btrfs_inode_unlock(BTRFS_I(inode), 0); in btrfs_encoded_write()
1421 &BTRFS_I(inode)->runtime_flags)) in btrfs_release_file()
1827 down_read(&BTRFS_I(inode)->i_mmap_lock); in btrfs_page_mkwrite()
1854 up_read(&BTRFS_I(inode)->i_mmap_lock); in btrfs_page_mkwrite()
1905 up_read(&BTRFS_I(inode)->i_mmap_lock); in btrfs_page_mkwrite()
[all …]
H A Dinode.c4366 btrfs_record_unlink_dir(trans, BTRFS_I(dir), BTRFS_I(d_inode(dentry)), in btrfs_unlink()
4369 ret = btrfs_unlink_inode(trans, BTRFS_I(dir), BTRFS_I(d_inode(dentry)), in btrfs_unlink()
4765 ret = btrfs_unlink_inode(trans, BTRFS_I(dir), BTRFS_I(d_inode(dentry)), in btrfs_rmdir()
6322 BTRFS_I(inode)->root = btrfs_grab_root(BTRFS_I(dir)->root); in btrfs_create_new_inode()
6372 btrfs_inherit_iflags(BTRFS_I(inode), BTRFS_I(dir)); in btrfs_create_new_inode()
6490 BTRFS_I(dir)); in btrfs_create_new_inode()
6525 ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), name, in btrfs_create_new_inode()
6752 err = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), in btrfs_link()
8153 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename_exchange()
8160 ret = btrfs_add_link(trans, BTRFS_I(old_dir), BTRFS_I(new_inode), in btrfs_rename_exchange()
[all …]
H A Dexport.c36 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh()
37 fid->root_objectid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_encode_fh()
43 fid->parent_objectid = btrfs_ino(BTRFS_I(parent)); in btrfs_encode_fh()
45 parent_root_id = btrfs_root_id(BTRFS_I(parent)->root); in btrfs_encode_fh()
148 struct btrfs_inode *dir = BTRFS_I(d_inode(child)); in btrfs_get_parent()
227 struct btrfs_inode *inode = BTRFS_I(d_inode(child)); in btrfs_get_name()
228 struct btrfs_inode *dir = BTRFS_I(d_inode(parent)); in btrfs_get_name()
H A Dverity.c583 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_begin_enable_verity()
632 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_end_enable_verity()
674 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_DESC_ITEM_KEY, 0, in btrfs_get_verity_descriptor()
691 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_DESC_ITEM_KEY, 1, in btrfs_get_verity_descriptor()
764 ret = read_key_bytes(BTRFS_I(inode), BTRFS_VERITY_MERKLE_ITEM_KEY, off, in btrfs_read_merkle_tree_page()
800 return write_key_bytes(BTRFS_I(inode), BTRFS_VERITY_MERKLE_ITEM_KEY, in btrfs_write_merkle_tree_block()
H A Dioctl.c509 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol()
764 pending_snapshot->dir = BTRFS_I(dir); in create_snapshot()
947 btrfs_inode_unlock(BTRFS_I(dir), 0); in btrfs_mksubvol()
1247 BTRFS_I(src_inode)->root, in __btrfs_ioctl_snap_create()
1823 u64 upper_limit = btrfs_ino(BTRFS_I(inode)); in btrfs_search_path_in_tree_user()
2090 fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_ioctl_get_subvol_info()
2442 dest = BTRFS_I(inode)->root; in btrfs_ioctl_snap_destroy()
2487 btrfs_inode_lock(BTRFS_I(inode), 0); in btrfs_ioctl_snap_destroy()
2489 btrfs_inode_unlock(BTRFS_I(inode), 0); in btrfs_ioctl_snap_destroy()
2496 btrfs_inode_unlock(BTRFS_I(dir), 0); in btrfs_ioctl_snap_destroy()
[all …]
H A Dprops.c263 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_prop_iterator()
266 ret = handler->apply(BTRFS_I(inode), value, len); in inode_prop_iterator()
270 handler->xattr_name, btrfs_ino(BTRFS_I(inode)), in inode_prop_iterator()
273 set_bit(BTRFS_INODE_HAS_PROPS, &BTRFS_I(inode)->runtime_flags); in inode_prop_iterator()
H A Dfree-space-cache.c160 block_group->inode = BTRFS_I(igrab(inode)); in lookup_free_space_inode()
264 btrfs_add_delayed_iput(BTRFS_I(inode)); in btrfs_remove_free_space_inode()
278 btrfs_add_delayed_iput(BTRFS_I(inode)); in btrfs_remove_free_space_inode()
298 .inode = BTRFS_I(vfs_inode), in btrfs_truncate_free_space_cache()
300 .ino = btrfs_ino(BTRFS_I(vfs_inode)), in btrfs_truncate_free_space_cache()
476 btrfs_err(BTRFS_I(inode)->root->fs_info, in io_ctl_prepare_pages()
482 btrfs_err(BTRFS_I(inode)->root->fs_info, in io_ctl_prepare_pages()
776 if (!BTRFS_I(inode)->generation) { in __load_free_space_cache()
1318 BTRFS_I(inode)->generation = 0; in __btrfs_wait_cache_io()
1404 BTRFS_I(inode)->generation = 0; in __btrfs_write_out_cache()
[all …]
H A Dsubpage.h91 ASSERT(is_data_inode(BTRFS_I(folio->mapping->host))); in btrfs_is_subpage()
103 ASSERT(is_data_inode(BTRFS_I(folio->mapping->host))); in btrfs_is_subpage()
H A Drelocation.c795 struct btrfs_root *root = BTRFS_I(reloc_inode)->root; in get_new_location()
807 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location()
2653 struct btrfs_inode *inode = BTRFS_I(rc->data_inode); in prealloc_file_extent_cluster()
2761 struct btrfs_inode *inode = BTRFS_I(rc->data_inode); in setup_relocation_extent_mapping()
2817 u64 offset = BTRFS_I(inode)->reloc_block_group_start; in relocate_one_folio()
2910 clear_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_folio()
2914 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_one_folio()
2916 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_one_folio()
2935 set_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_folio()
2971 u64 offset = BTRFS_I(inode)->reloc_block_group_start; in relocate_file_extent_cluster()
[all …]
H A Dzstd.c415 struct btrfs_inode *inode = BTRFS_I(mapping->host); in zstd_compress_folios()
451 struct btrfs_inode *inode = BTRFS_I(mapping->host); in zstd_compress_folios()
526 struct btrfs_inode *inode = BTRFS_I(mapping->host); in zstd_compress_folios()
H A Dextent_io.c314 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
1701 struct btrfs_inode *inode = BTRFS_I(folio->mapping->host); in extent_writepage()
1985 bbio->inode = BTRFS_I(eb->fs_info->btree_inode); in write_one_eb()
2349 &BTRFS_I(inode)->runtime_flags)) in extent_write_cache_pages()
2460 btrfs_add_delayed_iput(BTRFS_I(inode)); in extent_write_cache_pages()
2504 btrfs_mark_ordered_io_finished(BTRFS_I(inode), NULL, in extent_write_locked_range()
2523 ret = extent_writepage_io(BTRFS_I(inode), folio, cur, cur_len, in extent_write_locked_range()
2554 btrfs_zoned_data_reloc_lock(BTRFS_I(inode)); in btrfs_writepages()
2557 btrfs_zoned_data_reloc_unlock(BTRFS_I(inode)); in btrfs_writepages()
2565 struct btrfs_inode *inode = BTRFS_I(rac->mapping->host); in btrfs_readahead()
[all …]
H A Dzlib.c160 struct btrfs_inode *inode = BTRFS_I(mapping->host); in zlib_compress_folios()
231 struct btrfs_inode *inode = BTRFS_I(mapping->host); in zlib_compress_folios()
H A Ddefrag.c749 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent()
750 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent()
752 const u32 sectorsize = BTRFS_I(inode)->root->fs_info->sectorsize; in defrag_lookup_extent()
783 em = defrag_get_extent(BTRFS_I(inode), start, newer_than); in defrag_lookup_extent()
H A Dfs.h900 #define folio_to_inode(_folio) (BTRFS_I(_Generic((_folio), \
905 #define inode_to_fs_info(_inode) (BTRFS_I(_Generic((_inode), \
H A Dcompression.c430 em_tree = &BTRFS_I(inode)->extent_tree; in add_ra_bio_pages()
431 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
1005 struct btrfs_inode *inode = BTRFS_I(mapping->host); in btrfs_compress_filemap_get_folio()
H A Dsuper.c1142 seq_printf(seq, ",subvolid=%llu", btrfs_root_id(BTRFS_I(d_inode(dentry))->root)); in btrfs_show_options()
1144 btrfs_root_id(BTRFS_I(d_inode(dentry))->root)); in btrfs_show_options()
1195 u64 root_objectid = btrfs_root_id(BTRFS_I(root_inode)->root); in mount_subvol()
1818 buf->f_fsid.val[0] ^= btrfs_root_id(BTRFS_I(d_inode(dentry))->root) >> 32; in btrfs_statfs()
1819 buf->f_fsid.val[1] ^= btrfs_root_id(BTRFS_I(d_inode(dentry))->root); in btrfs_statfs()
H A Dbtrfs_inode.h356 #define BTRFS_I(_inode) \ macro
/linux-6.15/include/trace/events/
H A Dbtrfs.h221 __entry->ino = btrfs_ino(BTRFS_I(inode));
223 __entry->disk_i_size = BTRFS_I(inode)->disk_i_size;
224 __entry->generation = BTRFS_I(inode)->generation;
225 __entry->last_trans = BTRFS_I(inode)->last_trans;
228 BTRFS_I(inode)->root->root_key.objectid;
698 __entry->ino = btrfs_ino(BTRFS_I(inode));
709 BTRFS_I(inode)->root->root_key.objectid;
780 __entry->ino = btrfs_ino(BTRFS_I(inode));
784 BTRFS_I(inode)->root->root_key.objectid;
1676 BTRFS_I(inode)->root->root_key.objectid;
[all …]

12