| /fs/btrfs/ |
| A D | btrfs_inode.h | 127 struct btrfs_inode { struct 360 _inode, const struct btrfs_inode, vfs_inode)) 380 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino() 553 void btrfs_del_delalloc_inode(struct btrfs_inode *inode); 557 struct btrfs_inode *dir, struct btrfs_inode *inode, 560 struct btrfs_inode *parent_inode, struct btrfs_inode *inode, 595 void btrfs_clear_delalloc_extent(struct btrfs_inode *inode, 599 void btrfs_split_delalloc_extent(struct btrfs_inode *inode, 614 struct btrfs_inode *inode); 616 struct btrfs_inode *inode); [all …]
|
| A D | delayed-inode.h | 23 struct btrfs_inode; 112 struct btrfs_inode *dir, 117 struct btrfs_inode *dir, u64 index); 127 struct btrfs_inode *inode); 129 void btrfs_remove_delayed_node(struct btrfs_inode *inode); 130 void btrfs_kill_delayed_inode_items(struct btrfs_inode *inode); 135 struct btrfs_inode *inode); 136 int btrfs_fill_inode(struct btrfs_inode *inode, u32 *rdev); 137 int btrfs_delayed_delete_inode_ref(struct btrfs_inode *inode); 158 void btrfs_log_get_delayed_items(struct btrfs_inode *inode, [all …]
|
| A D | delalloc-space.h | 9 struct btrfs_inode; 12 int btrfs_alloc_data_chunk_ondemand(const struct btrfs_inode *inode, u64 bytes); 13 int btrfs_check_data_free_space(struct btrfs_inode *inode, 16 void btrfs_free_reserved_data_space(struct btrfs_inode *inode, 18 void btrfs_delalloc_release_space(struct btrfs_inode *inode, 21 void btrfs_free_reserved_data_space_noquota(struct btrfs_inode *inode, u64 len); 22 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, 24 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode, 26 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, 28 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes); [all …]
|
| A D | ordered-data.h | 21 struct btrfs_inode; 134 struct btrfs_inode *inode; 164 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode, 169 void btrfs_mark_ordered_io_finished(struct btrfs_inode *inode, 172 bool btrfs_dec_test_ordered_pending(struct btrfs_inode *inode, 189 struct btrfs_inode *inode, u64 file_offset, 202 int btrfs_wait_ordered_range(struct btrfs_inode *inode, u64 start, u64 len); 206 struct btrfs_inode *inode, u64 file_offset, u64 len); 208 struct btrfs_inode *inode, 211 void btrfs_get_ordered_extents_for_logging(struct btrfs_inode *inode, [all …]
|
| A D | file.h | 17 struct btrfs_inode; 27 struct btrfs_root *root, struct btrfs_inode *inode, 29 int btrfs_replace_file_extents(struct btrfs_inode *inode, 35 struct btrfs_inode *inode, u64 start, u64 end); 39 int btrfs_dirty_folio(struct btrfs_inode *inode, struct folio *folio, loff_t pos, 41 int btrfs_fdatawrite_range(struct btrfs_inode *inode, loff_t start, loff_t end); 42 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos, 44 void btrfs_check_nocow_unlock(struct btrfs_inode *inode); 45 bool btrfs_find_delalloc_in_range(struct btrfs_inode *inode, u64 start, u64 end,
|
| A D | tree-log.h | 40 struct btrfs_inode *inode; 58 void btrfs_init_log_ctx(struct btrfs_log_ctx *ctx, struct btrfs_inode *inode); 85 struct btrfs_inode *dir, u64 index); 89 struct btrfs_inode *inode, u64 dirid); 93 struct btrfs_inode *dir, struct btrfs_inode *inode, 96 struct btrfs_inode *dir); 98 struct btrfs_inode *dir); 100 struct dentry *old_dentry, struct btrfs_inode *old_dir,
|
| A D | props.h | 12 struct btrfs_inode; 18 int btrfs_set_prop(struct btrfs_trans_handle *trans, struct btrfs_inode *inode, 21 int btrfs_validate_prop(const struct btrfs_inode *inode, const char *name, 23 bool btrfs_ignore_prop(const struct btrfs_inode *inode, const char *name); 25 int btrfs_load_inode_props(struct btrfs_inode *inode, struct btrfs_path *path); 28 struct btrfs_inode *inode, 29 const struct btrfs_inode *dir);
|
| A D | extent_map.h | 14 struct btrfs_inode; 109 struct btrfs_inode; 173 void btrfs_remove_extent_mapping(struct btrfs_inode *inode, struct extent_map *em); 174 int btrfs_split_extent_map(struct btrfs_inode *inode, u64 start, u64 len, u64 pre, 181 int btrfs_unpin_extent_cache(struct btrfs_inode *inode, u64 start, u64 len, u64 gen); 182 void btrfs_clear_em_logging(struct btrfs_inode *inode, struct extent_map *em); 185 int btrfs_add_extent_mapping(struct btrfs_inode *inode, 187 void btrfs_drop_extent_map_range(struct btrfs_inode *inode, 190 int btrfs_replace_extent_map_range(struct btrfs_inode *inode,
|
| A D | delalloc-space.c | 126 int btrfs_alloc_data_chunk_ondemand(const struct btrfs_inode *inode, u64 bytes) in btrfs_alloc_data_chunk_ondemand() 141 int btrfs_check_data_free_space(struct btrfs_inode *inode, in btrfs_check_data_free_space() 183 void btrfs_free_reserved_data_space_noquota(struct btrfs_inode *inode, u64 len) in btrfs_free_reserved_data_space_noquota() 199 void btrfs_free_reserved_data_space(struct btrfs_inode *inode, in btrfs_free_reserved_data_space() 251 struct btrfs_inode *inode) in btrfs_calculate_inode_block_rsv_size() 290 static void calc_inode_reservations(struct btrfs_inode *inode, in calc_inode_reservations() 315 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_reserve_metadata() 405 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() 435 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents() 500 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode, in btrfs_delalloc_reserve_space() [all …]
|
| A D | ordered-data.c | 227 struct btrfs_inode *inode = entry->inode; in insert_ordered_extent() 329 struct btrfs_inode *inode = entry->inode; in btrfs_add_ordered_sum() 354 struct btrfs_inode *inode = ordered->inode; in can_finish_ordered_extent() 406 struct btrfs_inode *inode = ordered->inode; in btrfs_queue_ordered_fn() 419 struct btrfs_inode *inode = ordered->inode; in btrfs_finish_ordered_extent() 646 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode, in btrfs_remove_ordered_extent() argument 663 spin_lock(&btrfs_inode->lock); in btrfs_remove_ordered_extent() 665 spin_unlock(&btrfs_inode->lock); in btrfs_remove_ordered_extent() 683 rb_erase(node, &btrfs_inode->ordered_tree); in btrfs_remove_ordered_extent() 686 btrfs_inode->ordered_tree_last = NULL; in btrfs_remove_ordered_extent() [all …]
|
| A D | props.c | 27 int (*validate)(const struct btrfs_inode *inode, const char *value, 29 int (*apply)(struct btrfs_inode *inode, const char *value, size_t len); 30 const char *(*extract)(const struct btrfs_inode *inode); 31 bool (*ignore)(const struct btrfs_inode *inode); 67 int btrfs_validate_prop(const struct btrfs_inode *inode, const char *name, in btrfs_validate_prop() 97 bool btrfs_ignore_prop(const struct btrfs_inode *inode, const char *name) in btrfs_ignore_prop() 107 int btrfs_set_prop(struct btrfs_trans_handle *trans, struct btrfs_inode *inode, in btrfs_set_prop() 285 static int prop_compression_validate(const struct btrfs_inode *inode, in prop_compression_validate() 347 static bool prop_compression_ignore(const struct btrfs_inode *inode) in prop_compression_ignore() 389 struct btrfs_inode *inode, in btrfs_inode_inherit_props() [all …]
|
| A D | file-item.h | 21 struct btrfs_inode; 77 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, 81 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start, 83 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start, u64 len); 84 void btrfs_inode_safe_disk_i_size_write(struct btrfs_inode *inode, u64 new_i_size);
|
| A D | fiemap.c | 369 static int fiemap_search_slot(struct btrfs_inode *inode, struct btrfs_path *path, in fiemap_search_slot() 436 static int fiemap_process_hole(struct btrfs_inode *inode, in fiemap_process_hole() 554 static int fiemap_find_last_extent_offset(struct btrfs_inode *inode, in fiemap_find_last_extent_offset() 630 static int extent_fiemap(struct btrfs_inode *inode, in extent_fiemap() 883 struct btrfs_inode *btrfs_inode = BTRFS_I(inode); in btrfs_fiemap() local 904 ret = btrfs_wait_ordered_range(btrfs_inode, 0, LLONG_MAX); in btrfs_fiemap() 909 btrfs_inode_lock(btrfs_inode, BTRFS_ILOCK_SHARED); in btrfs_fiemap() 918 ret = btrfs_wait_ordered_range(btrfs_inode, 0, LLONG_MAX); in btrfs_fiemap() 920 btrfs_inode_unlock(btrfs_inode, BTRFS_ILOCK_SHARED); in btrfs_fiemap() 925 ret = extent_fiemap(btrfs_inode, fieinfo, start, len); in btrfs_fiemap() [all …]
|
| A D | delayed-inode.c | 68 struct btrfs_inode *btrfs_inode) in btrfs_get_delayed_node() argument 71 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_delayed_node() 84 if (btrfs_inode->delayed_node) { in btrfs_get_delayed_node() 109 btrfs_inode->delayed_node = node; in btrfs_get_delayed_node() 129 struct btrfs_inode *btrfs_inode) in btrfs_get_or_create_delayed_node() argument 133 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_or_create_delayed_node() 169 btrfs_inode->delayed_node = node; in btrfs_get_or_create_delayed_node() 1194 struct btrfs_inode *inode) in btrfs_commit_inode_delayed_items() 1450 struct btrfs_inode *dir, in btrfs_insert_delayed_dir_index() 1805 struct btrfs_inode *inode) in fill_stack_inode_item() [all …]
|
| A D | verity.h | 7 struct btrfs_inode; 15 int btrfs_drop_verity_items(struct btrfs_inode *inode); 22 static inline int btrfs_drop_verity_items(struct btrfs_inode *inode) in btrfs_drop_verity_items()
|
| A D | verity.c | 108 static int drop_verity_items(struct btrfs_inode *inode, u8 key_type) in drop_verity_items() 187 int btrfs_drop_verity_items(struct btrfs_inode *inode) in btrfs_drop_verity_items() 216 static int write_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in write_key_bytes() 296 static int read_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in read_key_bytes() 425 static int del_orphan(struct btrfs_trans_handle *trans, struct btrfs_inode *inode) in del_orphan() 457 static int rollback_verity(struct btrfs_inode *inode) in rollback_verity() 523 static int finish_verity(struct btrfs_inode *inode, const void *desc, in finish_verity() 583 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()
|
| A D | defrag.h | 10 struct btrfs_inode; 16 int btrfs_defrag_file(struct btrfs_inode *inode, struct file_ra_state *ra, 21 void btrfs_add_inode_defrag(struct btrfs_inode *inode, u32 extent_thresh);
|
| A D | extent_map.c | 80 static void remove_em(struct btrfs_inode *inode, struct extent_map *em) in remove_em() 342 static void try_merge_map(struct btrfs_inode *inode, struct extent_map *em) in try_merge_map() 461 static inline void setup_extent_mapping(struct btrfs_inode *inode, in setup_extent_mapping() 488 static int add_extent_mapping(struct btrfs_inode *inode, in add_extent_mapping() 594 static void replace_extent_mapping(struct btrfs_inode *inode, in replace_extent_mapping() 642 static noinline int merge_extent_mapping(struct btrfs_inode *inode, in merge_extent_mapping() 696 int btrfs_add_extent_mapping(struct btrfs_inode *inode, in btrfs_add_extent_mapping() 761 static void drop_all_extent_maps_fast(struct btrfs_inode *inode) in drop_all_extent_maps_fast() 1001 int btrfs_replace_extent_map_range(struct btrfs_inode *inode, in btrfs_replace_extent_map_range() 1197 struct btrfs_inode *inode; in find_first_inode_to_shrink() [all …]
|
| A D | tree-log.c | 105 struct btrfs_inode *inode, 144 struct btrfs_inode *inode; in btrfs_iget_logging() 923 struct btrfs_inode *inode; in drop_one_dir_item() 1338 struct btrfs_inode *dir; in unlink_old_inode_refs() 1708 struct btrfs_inode *inode; in fixup_inode_link_counts() 1766 struct btrfs_inode *inode; in link_to_fixup_dir() 1806 struct btrfs_inode *inode; in insert_one_name() 1807 struct btrfs_inode *dir; in insert_one_name() 1887 struct btrfs_inode *dir; in replay_one_name() 2343 struct btrfs_inode *dir; in replay_dir_deletes() [all …]
|
| A D | inode.c | 734 struct btrfs_inode *inode; 2729 struct btrfs_inode *inode; 4315 struct btrfs_inode *dir, struct btrfs_inode *inode, in btrfs_unlink_inode() 4552 struct btrfs_inode *inode; in btrfs_prune_dentries() 5695 struct btrfs_inode *entry; in btrfs_del_inode_from_root() 5760 struct btrfs_inode *inode; in btrfs_iget_path() 5783 struct btrfs_inode *inode; in btrfs_iget() 5815 struct btrfs_inode *inode; in new_simple_dir() 6373 static void btrfs_inherit_iflags(struct btrfs_inode *inode, struct btrfs_inode *dir) in btrfs_inherit_iflags() 6661 struct btrfs_inode *parent_inode, struct btrfs_inode *inode, in btrfs_add_link() [all …]
|
| A D | reflink.c | 54 static int copy_inline_to_page(struct btrfs_inode *inode, in copy_inline_to_page() 165 static int clone_copy_inline_extent(struct btrfs_inode *inode, in clone_copy_inline_extent() 621 static void btrfs_double_mmap_lock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_lock() 629 static void btrfs_double_mmap_unlock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_unlock() 635 static int btrfs_extent_same_range(struct btrfs_inode *src, u64 loff, u64 len, in btrfs_extent_same_range() 636 struct btrfs_inode *dst, u64 dst_loff) in btrfs_extent_same_range() 781 struct btrfs_inode *inode_in = BTRFS_I(file_inode(file_in)); in btrfs_remap_file_range_prep() 782 struct btrfs_inode *inode_out = BTRFS_I(file_inode(file_out)); in btrfs_remap_file_range_prep() 867 struct btrfs_inode *src_inode = BTRFS_I(file_inode(src_file)); in btrfs_remap_file_range() 868 struct btrfs_inode *dst_inode = BTRFS_I(file_inode(dst_file)); in btrfs_remap_file_range()
|
| A D | qgroup.h | 24 struct btrfs_inode; 389 int btrfs_qgroup_reserve_data(struct btrfs_inode *inode, 391 int btrfs_qgroup_release_data(struct btrfs_inode *inode, u64 start, u64 len, u64 *released); 392 int btrfs_qgroup_free_data(struct btrfs_inode *inode, 438 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode);
|
| A D | export.c | 78 struct btrfs_inode *inode; in btrfs_get_dentry() 148 struct btrfs_inode *dir = BTRFS_I(d_inode(child)); in btrfs_get_parent() 149 struct btrfs_inode *inode; 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()
|
| A D | ioctl.h | 13 struct btrfs_inode; 23 void btrfs_sync_inode_flags_to_i_flags(struct btrfs_inode *inode);
|
| /fs/btrfs/tests/ |
| A D | extent-map-tests.c | 14 static int free_extent_map_tree(struct btrfs_inode *inode) in free_extent_map_tree() 62 static int test_case_1(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_1() 163 static int test_case_2(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_2() 255 struct btrfs_inode *inode, u64 start) in __test_case_3() 348 static int test_case_3(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_3() 364 struct btrfs_inode *inode, u64 start) in __test_case_4() 482 static int test_case_4(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_4() 494 static int add_compressed_extent(struct btrfs_inode *inode, in add_compressed_extent() 620 static int test_case_5(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_5() 707 static int test_case_6(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_6() [all …]
|