/Linux-v5.10/fs/btrfs/ |
D | ordered-data.h | 154 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode, 156 int btrfs_dec_test_ordered_pending(struct btrfs_inode *inode, 159 int btrfs_dec_test_first_ordered_pending(struct btrfs_inode *inode, 163 int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, 166 int btrfs_add_ordered_extent_dio(struct btrfs_inode *inode, u64 file_offset, 169 int btrfs_add_ordered_extent_compress(struct btrfs_inode *inode, u64 file_offset, 175 struct btrfs_ordered_extent *btrfs_lookup_ordered_extent(struct btrfs_inode *inode, 180 btrfs_lookup_first_ordered_extent(struct btrfs_inode *inode, u64 file_offset); 182 struct btrfs_inode *inode, 185 void btrfs_get_ordered_extents_for_logging(struct btrfs_inode *inode, [all …]
|
D | delalloc-space.h | 8 int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes); 9 int btrfs_check_data_free_space(struct btrfs_inode *inode, 11 void btrfs_free_reserved_data_space(struct btrfs_inode *inode, 13 void btrfs_delalloc_release_space(struct btrfs_inode *inode, 18 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, 20 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode,
|
D | delayed-inode.h | 90 struct btrfs_inode *dir, 95 struct btrfs_inode *dir, u64 index); 97 int btrfs_inode_delayed_dir_index_count(struct btrfs_inode *inode); 105 struct btrfs_inode *inode); 107 void btrfs_remove_delayed_node(struct btrfs_inode *inode); 108 void btrfs_kill_delayed_inode_items(struct btrfs_inode *inode); 109 int btrfs_commit_inode_delayed_inode(struct btrfs_inode *inode); 115 int btrfs_delayed_delete_inode_ref(struct btrfs_inode *inode);
|
D | tree-log.h | 74 struct btrfs_inode *dir, u64 index); 78 struct btrfs_inode *inode, u64 dirid); 82 struct btrfs_inode *dir, struct btrfs_inode *inode, 85 struct btrfs_inode *dir); 87 struct btrfs_inode *inode, struct btrfs_inode *old_dir,
|
D | btrfs_inode.h | 41 struct btrfs_inode { struct 219 static inline u32 btrfs_inode_sectorsize(const struct btrfs_inode *inode) in btrfs_inode_sectorsize() argument 224 static inline struct btrfs_inode *BTRFS_I(const struct inode *inode) in BTRFS_I() 226 return container_of(inode, struct btrfs_inode, vfs_inode); in BTRFS_I() 248 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino() 261 static inline void btrfs_i_size_write(struct btrfs_inode *inode, u64 size) in btrfs_i_size_write() 267 static inline bool btrfs_is_free_space_inode(struct btrfs_inode *inode) in btrfs_is_free_space_inode() 284 static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode, in btrfs_mod_outstanding_extents() 295 static inline int btrfs_inode_in_log(struct btrfs_inode *inode, u64 generation) in btrfs_inode_in_log() 340 static inline void btrfs_print_data_csum_error(struct btrfs_inode *inode, in btrfs_print_data_csum_error()
|
D | delalloc-space.c | 114 int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes) in btrfs_alloc_data_chunk_ondemand() 129 int btrfs_check_data_free_space(struct btrfs_inode *inode, in btrfs_check_data_free_space() 179 void btrfs_free_reserved_data_space(struct btrfs_inode *inode, in btrfs_free_reserved_data_space() 204 static void btrfs_inode_rsv_release(struct btrfs_inode *inode, bool qgroup_free) in btrfs_inode_rsv_release() 229 struct btrfs_inode *inode) in btrfs_calculate_inode_block_rsv_size() 286 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_reserve_metadata() 373 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() 401 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents() 443 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode, in btrfs_delalloc_reserve_space() 469 void btrfs_delalloc_release_space(struct btrfs_inode *inode, in btrfs_delalloc_release_space()
|
D | ordered-data.c | 162 static int __btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, in __btrfs_add_ordered_extent() 255 int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, in btrfs_add_ordered_extent() 264 int btrfs_add_ordered_extent_dio(struct btrfs_inode *inode, u64 file_offset, in btrfs_add_ordered_extent_dio() 273 int btrfs_add_ordered_extent_compress(struct btrfs_inode *inode, u64 file_offset, in btrfs_add_ordered_extent_compress() 311 int btrfs_dec_test_first_ordered_pending(struct btrfs_inode *inode, in btrfs_dec_test_first_ordered_pending() 381 int btrfs_dec_test_ordered_pending(struct btrfs_inode *inode, in btrfs_dec_test_ordered_pending() 466 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode, in btrfs_remove_ordered_extent() argument 470 struct btrfs_root *root = btrfs_inode->root; in btrfs_remove_ordered_extent() 476 spin_lock(&btrfs_inode->lock); in btrfs_remove_ordered_extent() 477 btrfs_mod_outstanding_extents(btrfs_inode, -1); in btrfs_remove_ordered_extent() [all …]
|
D | qgroup.h | 358 int btrfs_qgroup_reserve_data(struct btrfs_inode *inode, 360 int btrfs_qgroup_release_data(struct btrfs_inode *inode, u64 start, u64 len); 361 int btrfs_qgroup_free_data(struct btrfs_inode *inode, 413 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode);
|
D | extent_io.h | 65 struct btrfs_inode; 177 typedef struct extent_map *(get_extent_t)(struct btrfs_inode *inode, 197 int extent_fiemap(struct btrfs_inode *inode, struct fiemap_extent_info *fieinfo, 271 void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end, 281 struct btrfs_inode;
|
D | delayed-inode.c | 68 struct btrfs_inode *btrfs_inode) in btrfs_get_delayed_node() argument 70 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_delayed_node() 71 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_delayed_node() 74 node = READ_ONCE(btrfs_inode->delayed_node); in btrfs_get_delayed_node() 84 if (btrfs_inode->delayed_node) { in btrfs_get_delayed_node() 86 BUG_ON(btrfs_inode->delayed_node != node); in btrfs_get_delayed_node() 109 btrfs_inode->delayed_node = node; in btrfs_get_delayed_node() 124 struct btrfs_inode *btrfs_inode) in btrfs_get_or_create_delayed_node() argument 127 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_or_create_delayed_node() 128 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_or_create_delayed_node() [all …]
|
D | ctree.h | 2667 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes); 2669 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes); 2866 int name_len, struct btrfs_inode *dir, 2958 blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio, 2962 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, 2967 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start, 2969 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start, 2979 struct extent_map *btrfs_get_extent_fiemap(struct btrfs_inode *inode, 2986 struct btrfs_inode *inode); 2988 int btrfs_set_inode_index(struct btrfs_inode *dir, u64 *index); [all …]
|
D | compression.h | 11 struct btrfs_inode; 93 blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
|
D | tree-log.c | 97 struct btrfs_root *root, struct btrfs_inode *inode, 851 struct btrfs_inode *dir, in drop_one_dir_item() 979 struct btrfs_inode *dir, in __add_inode_ref() 980 struct btrfs_inode *inode, in __add_inode_ref() 1212 struct btrfs_inode *inode, in unlink_old_inode_refs() 1580 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_extrefs() 1624 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_refs() 3318 struct btrfs_inode *inode) in inode_logged() 3355 struct btrfs_inode *dir, u64 index) in btrfs_del_dir_entries_in_log() 3465 struct btrfs_inode *inode, u64 dirid) in btrfs_del_inode_ref_in_log() [all …]
|
D | inode.c | 84 static noinline int cow_file_range(struct btrfs_inode *inode, 88 static struct extent_map *create_io_em(struct btrfs_inode *inode, u64 start, 94 static void __endio_write_update_ordered(struct btrfs_inode *inode, 108 static inline void btrfs_cleanup_ordered_extents(struct btrfs_inode *inode, in btrfs_cleanup_ordered_extents() 271 static noinline int cow_file_range_inline(struct btrfs_inode *inode, u64 start, in cow_file_range_inline() 409 static inline bool inode_can_compress(struct btrfs_inode *inode) in inode_can_compress() 421 static inline int inode_need_compress(struct btrfs_inode *inode, u64 start, in inode_need_compress() 448 static inline void inode_should_defrag(struct btrfs_inode *inode, in inode_should_defrag() 768 struct btrfs_inode *inode = BTRFS_I(async_chunk->inode); in submit_compressed_extents() 932 static u64 get_extent_allocation_hint(struct btrfs_inode *inode, u64 start, in get_extent_allocation_hint() [all …]
|
D | file.c | 82 static int __btrfs_add_inode_defrag(struct btrfs_inode *inode, in __btrfs_add_inode_defrag() 135 struct btrfs_inode *inode) in btrfs_add_inode_defrag() 184 static void btrfs_requeue_inode_defrag(struct btrfs_inode *inode, in btrfs_requeue_inode_defrag() 463 int btrfs_dirty_pages(struct btrfs_inode *inode, struct page **pages, in btrfs_dirty_pages() 517 void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache() 676 struct btrfs_root *root, struct btrfs_inode *inode, in __btrfs_drop_extents() 1071 struct btrfs_inode *inode, u64 start, u64 end) in btrfs_mark_extent_written() 1406 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct page **pages, in lock_and_cleanup_extent_if_need() 1471 static int check_can_nocow(struct btrfs_inode *inode, loff_t pos, in check_can_nocow() 1525 static int check_nocow_nolock(struct btrfs_inode *inode, loff_t pos, in check_nocow_nolock() [all …]
|
D | transaction.h | 169 struct btrfs_inode *inode) in btrfs_set_inode_last_trans()
|
D | file-item.c | 76 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start, in btrfs_inode_set_file_extent_range() 102 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start, in btrfs_inode_clear_file_extent_range() 525 blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio, in btrfs_csum_one_bio() 1033 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, in btrfs_extent_item_to_extent_map()
|
D | extent_io.c | 2021 void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end, in extent_clear_unlock_delalloc() 2425 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start, u64 end) in btrfs_free_io_failure_record() 3355 struct btrfs_inode *inode = BTRFS_I(pages[0]->mapping->host); in contiguous_readpages() 3383 static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode, in writepage_delalloc() 3456 static noinline_for_stack int __extent_writepage_io(struct btrfs_inode *inode, in __extent_writepage_io() 4440 struct btrfs_inode *btrfs_inode = BTRFS_I(page->mapping->host); in try_release_extent_mapping() local 4441 struct extent_io_tree *tree = &btrfs_inode->io_tree; in try_release_extent_mapping() 4442 struct extent_map_tree *map = &btrfs_inode->extent_tree; in try_release_extent_mapping() 4484 fs_info = btrfs_inode->root->fs_info; in try_release_extent_mapping() 4519 static struct extent_map *get_extent_skip_holes(struct btrfs_inode *inode, in get_extent_skip_holes() [all …]
|
D | extent-io-tree.h | 242 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start,
|
D | qgroup.c | 3482 static int qgroup_unreserve_range(struct btrfs_inode *inode, in qgroup_unreserve_range() 3612 static int qgroup_reserve_data(struct btrfs_inode *inode, in qgroup_reserve_data() 3677 int btrfs_qgroup_reserve_data(struct btrfs_inode *inode, in btrfs_qgroup_reserve_data() 3694 static int qgroup_free_reserved_data(struct btrfs_inode *inode, in qgroup_free_reserved_data() 3748 static int __btrfs_qgroup_release_data(struct btrfs_inode *inode, in __btrfs_qgroup_release_data() 3795 int btrfs_qgroup_free_data(struct btrfs_inode *inode, in btrfs_qgroup_free_data() 3816 int btrfs_qgroup_release_data(struct btrfs_inode *inode, u64 start, u64 len) in btrfs_qgroup_release_data() 4002 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode) in btrfs_qgroup_check_reserved_leak()
|
D | dir-item.c | 109 int name_len, struct btrfs_inode *dir, in btrfs_insert_dir_item()
|
D | disk-io.c | 807 struct btrfs_inode *bi) in check_async_write() 4428 struct btrfs_inode *btrfs_inode; in btrfs_destroy_delalloc_inodes() local 4438 btrfs_inode = list_first_entry(&splice, struct btrfs_inode, in btrfs_destroy_delalloc_inodes() 4440 __btrfs_del_delalloc_inode(root, btrfs_inode); in btrfs_destroy_delalloc_inodes() 4447 inode = igrab(&btrfs_inode->vfs_inode); in btrfs_destroy_delalloc_inodes()
|
D | relocation.c | 927 struct btrfs_inode *entry; in find_next_inode() 936 entry = rb_entry(node, struct btrfs_inode, rb_node); in find_next_inode() 947 entry = rb_entry(prev, struct btrfs_inode, rb_node); in find_next_inode() 956 entry = rb_entry(node, struct btrfs_inode, rb_node); in find_next_inode() 2588 struct btrfs_inode *inode, in prealloc_file_extent_cluster() 3881 int btrfs_reloc_clone_csums(struct btrfs_inode *inode, u64 file_pos, u64 len) in btrfs_reloc_clone_csums()
|
D | compression.c | 140 static int check_compressed_csum(struct btrfs_inode *inode, struct bio *bio, in check_compressed_csum() 371 blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start, in btrfs_submit_compressed_write()
|
/Linux-v5.10/include/trace/events/ |
D | btrfs.h | 14 struct btrfs_inode; 283 TP_PROTO(const struct btrfs_root *root, const struct btrfs_inode *inode, 371 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 426 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 467 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 476 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 485 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 494 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 514 TP_PROTO(const struct btrfs_inode *inode, 566 TP_PROTO(const struct btrfs_inode *inode, [all …]
|