Home
last modified time | relevance | path

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

/fs/btrfs/
Dinode.c193 BTRFS_I(inode)->disk_i_size = inode->i_size; in insert_inline_extent()
308 struct btrfs_root *root = BTRFS_I(inode)->root; in compress_file_range()
428 &BTRFS_I(inode)->io_tree, in compress_file_range()
536 struct btrfs_root *root = BTRFS_I(inode)->root; in submit_compressed_extents()
537 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in submit_compressed_extents()
551 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
641 &BTRFS_I(inode)->io_tree, in submit_compressed_extents()
684 struct btrfs_root *root = BTRFS_I(inode)->root; in cow_file_range()
696 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in cow_file_range()
716 &BTRFS_I(inode)->io_tree, in cow_file_range()
[all …]
Dordered-data.c174 tree = &BTRFS_I(inode)->ordered_tree; in btrfs_add_ordered_extent()
198 set_extent_ordered(&BTRFS_I(inode)->io_tree, file_offset, in btrfs_add_ordered_extent()
201 spin_lock(&BTRFS_I(inode)->root->fs_info->ordered_extent_lock); in btrfs_add_ordered_extent()
203 &BTRFS_I(inode)->root->fs_info->ordered_extents); in btrfs_add_ordered_extent()
204 spin_unlock(&BTRFS_I(inode)->root->fs_info->ordered_extent_lock); in btrfs_add_ordered_extent()
222 tree = &BTRFS_I(inode)->ordered_tree; in btrfs_add_ordered_sum()
244 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_dec_test_ordered_pending()
247 tree = &BTRFS_I(inode)->ordered_tree; in btrfs_dec_test_ordered_pending()
304 tree = &BTRFS_I(inode)->ordered_tree; in btrfs_remove_ordered_extent()
311 spin_lock(&BTRFS_I(inode)->root->fs_info->ordered_extent_lock); in btrfs_remove_ordered_extent()
[all …]
Ddisk-io.c120 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btree_get_extent()
128 BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btree_get_extent()
143 em->bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btree_get_extent()
295 io_tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages()
330 tree = &BTRFS_I(page->mapping->host)->io_tree; in csum_dirty_buffer()
401 struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; in btree_readpage_end_io_hook()
404 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage_end_io_hook()
519 fs_info = BTRFS_I(async->inode)->root->fs_info; in run_one_async_start()
531 fs_info = BTRFS_I(async->inode)->root->fs_info; in run_one_async_done()
611 root = BTRFS_I(bvec->bv_page->mapping->host)->root; in btree_csum_one_bio()
[all …]
Dcompression.c119 struct btrfs_root *root = BTRFS_I(inode)->root; in check_compressed_csum()
191 tree = &BTRFS_I(inode)->io_tree; in end_compressed_bio_read()
298 tree = &BTRFS_I(inode)->io_tree; in end_compressed_bio_write()
343 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_submit_compressed_write()
346 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_write()
366 bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btrfs_submit_compressed_write()
457 em_tree = &BTRFS_I(inode)->extent_tree; in add_ra_bio_pages()
458 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
578 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_submit_compressed_read()
593 tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_read()
[all …]
Dioctl.c180 BTRFS_I(dir)->block_group); in create_subvol()
296 u64 parent_oid = BTRFS_I(dir->d_inode)->root->root_key.objectid; in btrfs_mksubvol()
328 BTRFS_I(test->d_inode)->root->root_key.objectid; in btrfs_mksubvol()
345 error = create_subvol(BTRFS_I(parent->dentry->d_inode)->root, in btrfs_mksubvol()
365 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_defrag_file()
366 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_defrag_file()
556 struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root; in btrfs_ioctl_snap_create()
629 namelen, BTRFS_I(src_inode)->root); in btrfs_ioctl_snap_create()
641 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_defrag()
727 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_clone()
[all …]
Dexport.c31 fid->objectid = BTRFS_I(inode)->location.objectid; in btrfs_encode_fh()
32 fid->root_objectid = BTRFS_I(inode)->root->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->objectid; in btrfs_encode_fh()
142 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_get_parent()
Dtransaction.h66 trans->block_group = BTRFS_I(inode)->block_group; in btrfs_set_trans_block_group()
73 BTRFS_I(inode)->block_group = trans->block_group; in btrfs_update_inode_block_group()
79 BTRFS_I(inode)->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
Dfile.c116 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in dirty_and_release_pages()
172 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_drop_extent_cache()
509 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in btrfs_drop_extents()
514 lock_extent(&BTRFS_I(inode)->io_tree, in btrfs_drop_extents()
682 unlock_extent(&BTRFS_I(inode)->io_tree, end, locked_end - 1, in btrfs_drop_extents()
830 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in btrfs_mark_extent_written()
834 lock_extent(&BTRFS_I(inode)->io_tree, in btrfs_mark_extent_written()
929 unlock_extent(&BTRFS_I(inode)->io_tree, end, locked_end - 1, in btrfs_mark_extent_written()
974 lock_extent(&BTRFS_I(inode)->io_tree, in prepare_pages()
982 unlock_extent(&BTRFS_I(inode)->io_tree, in prepare_pages()
[all …]
Dbtrfs_inode.h127 static inline struct btrfs_inode *BTRFS_I(struct inode *inode) in BTRFS_I() function
135 BTRFS_I(inode)->disk_i_size = size; in btrfs_i_size_write()
Dacl.c53 p_acl = &BTRFS_I(inode)->i_acl; in btrfs_get_acl()
57 p_acl = &BTRFS_I(inode)->i_default_acl; in btrfs_get_acl()
136 p_acl = &BTRFS_I(inode)->i_acl; in btrfs_set_acl()
142 p_acl = &BTRFS_I(inode)->i_default_acl; in btrfs_set_acl()
Dxattr.c36 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_getxattr()
92 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_setxattr()
162 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_listxattr()
Dtree-log.c376 BTRFS_I(inode)->root = root; in read_one_inode()
377 BTRFS_I(inode)->location.objectid = objectid; in read_one_inode()
378 BTRFS_I(inode)->location.type = BTRFS_INODE_ITEM_KEY; in read_one_inode()
379 BTRFS_I(inode)->location.offset = 0; in read_one_inode()
930 BTRFS_I(inode)->index_cnt = (u64)-1; in fixup_inode_link_count()
2076 if (BTRFS_I(dir)->logged_trans < trans->transid) in btrfs_del_dir_entries_in_log()
2083 mutex_lock(&BTRFS_I(dir)->log_mutex); in btrfs_del_dir_entries_in_log()
2134 mutex_unlock(&BTRFS_I(dir)->log_mutex); in btrfs_del_dir_entries_in_log()
2150 if (BTRFS_I(inode)->logged_trans < trans->transid) in btrfs_del_inode_ref_in_log()
2157 mutex_lock(&BTRFS_I(inode)->log_mutex); in btrfs_del_inode_ref_in_log()
[all …]
Dextent-tree.c2028 BTRFS_I(inode)->space_info = __find_space_info(root->fs_info, in btrfs_set_inode_space_info()
2104 data_sinfo = BTRFS_I(inode)->space_info; in btrfs_check_data_free_space()
2161 BTRFS_I(inode)->reserved_bytes += bytes; in btrfs_check_data_free_space()
2179 data_sinfo = BTRFS_I(inode)->space_info; in btrfs_free_reserved_data_space()
2182 BTRFS_I(inode)->reserved_bytes -= bytes; in btrfs_free_reserved_data_space()
2193 data_sinfo = BTRFS_I(inode)->space_info; in btrfs_delalloc_reserve_space()
2204 if (unlikely(bytes > BTRFS_I(inode)->reserved_bytes)) { in btrfs_delalloc_reserve_space()
2205 data_sinfo->bytes_may_use -= BTRFS_I(inode)->reserved_bytes; in btrfs_delalloc_reserve_space()
2206 BTRFS_I(inode)->reserved_bytes = 0; in btrfs_delalloc_reserve_space()
2209 BTRFS_I(inode)->reserved_bytes -= bytes; in btrfs_delalloc_reserve_space()
[all …]
Dsuper.c324 bi = BTRFS_I(inode); in btrfs_fill_super()
565 buf->f_fsid.val[0] ^= BTRFS_I(dentry->d_inode)->root->objectid >> 32; in btrfs_statfs()
566 buf->f_fsid.val[1] ^= BTRFS_I(dentry->d_inode)->root->objectid; in btrfs_statfs()
Dfile-item.c166 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_lookup_bio_sums()
195 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
Dextent_io.c1641 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_bio_extent_writepage()
1714 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_bio_extent_readpage()
1790 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_bio_extent_preparewrite()
2833 lock_extent(&BTRFS_I(inode)->io_tree, start, start + blksize - 1, in extent_bmap()
2836 unlock_extent(&BTRFS_I(inode)->io_tree, start, start + blksize - 1, in extent_bmap()
2867 lock_extent(&BTRFS_I(inode)->io_tree, start, start + len, in extent_fiemap()
2937 unlock_extent(&BTRFS_I(inode)->io_tree, start, start + len, in extent_fiemap()
Dctree.h982 #define btrfs_clear_flag(inode, flag) (BTRFS_I(inode)->flags &= \
984 #define btrfs_set_flag(inode, flag) (BTRFS_I(inode)->flags |= \
986 #define btrfs_test_flag(inode, flag) (BTRFS_I(inode)->flags & \
Dtransaction.c804 parent_root = BTRFS_I(parent_inode)->root; in finish_pending_snapshot()