Home
last modified time | relevance | path

Searched refs:btrfs_inode (Results 1 – 25 of 27) sorted by relevance

12

/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dordered-data.h154 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 …]
H A Dbtrfs_inode.h57 struct btrfs_inode { struct
235 static inline u32 btrfs_inode_sectorsize(const struct btrfs_inode *inode) in btrfs_inode_sectorsize() argument
240 static inline struct btrfs_inode *BTRFS_I(const struct inode *inode) in BTRFS_I()
242 return container_of(inode, struct btrfs_inode, vfs_inode); in BTRFS_I()
264 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
277 static inline void btrfs_i_size_write(struct btrfs_inode *inode, u64 size) in btrfs_i_size_write()
283 static inline bool btrfs_is_free_space_inode(struct btrfs_inode *inode) in btrfs_is_free_space_inode()
300 static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode, in btrfs_mod_outstanding_extents()
319 static inline void btrfs_set_inode_last_sub_trans(struct btrfs_inode *inode) in btrfs_set_inode_last_sub_trans()
326 static inline int btrfs_inode_in_log(struct btrfs_inode *inode, u64 generation) in btrfs_inode_in_log()
[all …]
H A Ddelalloc-space.h8 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,
H A Ddelayed-inode.h90 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);
H A Dtree-log.h74 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,
H A Ddelalloc-space.c114 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()
H A Dordered-data.c162 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 …]
H A Ddelayed-inode.c68 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 …]
H A Dextent_io.h65 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;
H A Dqgroup.h358 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,
415 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode);
H A Dctree.h2674 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes);
2676 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes);
2873 int name_len, struct btrfs_inode *dir,
2965 blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio,
2969 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode,
2974 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start,
2976 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start,
2986 struct extent_map *btrfs_get_extent_fiemap(struct btrfs_inode *inode,
2993 struct btrfs_inode *inode);
2995 int btrfs_set_inode_index(struct btrfs_inode *dir, u64 *index);
[all …]
H A Dtree-log.c97 struct btrfs_root *root, struct btrfs_inode *inode,
853 struct btrfs_inode *dir, in drop_one_dir_item()
989 struct btrfs_inode *dir, in __add_inode_ref()
990 struct btrfs_inode *inode, in __add_inode_ref()
1230 struct btrfs_inode *inode, in unlink_old_inode_refs()
1619 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_extrefs()
1663 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_refs()
3365 struct btrfs_inode *inode) in inode_logged()
3402 struct btrfs_inode *dir, u64 index) in btrfs_del_dir_entries_in_log()
3512 struct btrfs_inode *inode, u64 dirid) in btrfs_del_inode_ref_in_log()
[all …]
H A Dinode.c84 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 …]
H A Dcompression.h11 struct btrfs_inode;
93 blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
H A Dfile.c82 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()
1070 struct btrfs_inode *inode, u64 start, u64 end) in btrfs_mark_extent_written()
1405 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct page **pages, in lock_and_cleanup_extent_if_need()
1470 static int check_can_nocow(struct btrfs_inode *inode, loff_t pos, in check_can_nocow()
1524 static int check_nocow_nolock(struct btrfs_inode *inode, loff_t pos, in check_nocow_nolock()
[all …]
H A Dfile-item.c76 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()
1044 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, in btrfs_extent_item_to_extent_map()
H A Dtransaction.h169 struct btrfs_inode *inode) in btrfs_set_inode_last_trans()
H A Dextent_io.c2019 void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end, in extent_clear_unlock_delalloc()
2423 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start, u64 end) in btrfs_free_io_failure_record()
3353 struct btrfs_inode *inode = BTRFS_I(pages[0]->mapping->host); in contiguous_readpages()
3381 static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode, in writepage_delalloc()
3454 static noinline_for_stack int __extent_writepage_io(struct btrfs_inode *inode, in __extent_writepage_io()
4444 struct btrfs_inode *btrfs_inode = BTRFS_I(page->mapping->host); in try_release_extent_mapping() local
4445 struct extent_io_tree *tree = &btrfs_inode->io_tree; in try_release_extent_mapping()
4446 struct extent_map_tree *map = &btrfs_inode->extent_tree; in try_release_extent_mapping()
4488 fs_info = btrfs_inode->root->fs_info; in try_release_extent_mapping()
4523 static struct extent_map *get_extent_skip_holes(struct btrfs_inode *inode, in get_extent_skip_holes()
[all …]
H A Dextent-io-tree.h242 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start,
H A Dqgroup.c3547 static int qgroup_unreserve_range(struct btrfs_inode *inode, in qgroup_unreserve_range()
3687 static int qgroup_reserve_data(struct btrfs_inode *inode, in qgroup_reserve_data()
3752 int btrfs_qgroup_reserve_data(struct btrfs_inode *inode, in btrfs_qgroup_reserve_data()
3769 static int qgroup_free_reserved_data(struct btrfs_inode *inode, in qgroup_free_reserved_data()
3823 static int __btrfs_qgroup_release_data(struct btrfs_inode *inode, in __btrfs_qgroup_release_data()
3870 int btrfs_qgroup_free_data(struct btrfs_inode *inode, in btrfs_qgroup_free_data()
3891 int btrfs_qgroup_release_data(struct btrfs_inode *inode, u64 start, u64 len) in btrfs_qgroup_release_data()
4077 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode) in btrfs_qgroup_check_reserved_leak()
H A Ddir-item.c109 int name_len, struct btrfs_inode *dir, in btrfs_insert_dir_item()
H A Ddisk-io.c807 struct btrfs_inode *bi) in check_async_write()
4500 struct btrfs_inode *btrfs_inode; in btrfs_destroy_delalloc_inodes() local
4510 btrfs_inode = list_first_entry(&splice, struct btrfs_inode, in btrfs_destroy_delalloc_inodes()
4512 __btrfs_del_delalloc_inode(root, btrfs_inode); in btrfs_destroy_delalloc_inodes()
4519 inode = igrab(&btrfs_inode->vfs_inode); in btrfs_destroy_delalloc_inodes()
H A Drelocation.c945 struct btrfs_inode *entry; in find_next_inode()
954 entry = rb_entry(node, struct btrfs_inode, rb_node); in find_next_inode()
965 entry = rb_entry(prev, struct btrfs_inode, rb_node); in find_next_inode()
974 entry = rb_entry(node, struct btrfs_inode, rb_node); in find_next_inode()
2606 struct btrfs_inode *inode, in prealloc_file_extent_cluster()
3904 int btrfs_reloc_clone_csums(struct btrfs_inode *inode, u64 file_pos, u64 len) in btrfs_reloc_clone_csums()
H A Dcompression.c145 static int check_compressed_csum(struct btrfs_inode *inode, struct bio *bio, in check_compressed_csum()
376 blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start, in btrfs_submit_compressed_write()
/OK3568_Linux_fs/kernel/include/trace/events/
H A Dbtrfs.h14 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 …]

12