Home
last modified time | relevance | path

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

12

/linux-6.1.9/fs/btrfs/
Dordered-data.h174 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode,
176 void btrfs_mark_ordered_io_finished(struct btrfs_inode *inode,
179 bool btrfs_dec_test_ordered_pending(struct btrfs_inode *inode,
182 int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset,
188 struct btrfs_ordered_extent *btrfs_lookup_ordered_extent(struct btrfs_inode *inode,
193 btrfs_lookup_first_ordered_extent(struct btrfs_inode *inode, u64 file_offset);
195 struct btrfs_inode *inode, u64 file_offset, u64 len);
197 struct btrfs_inode *inode,
200 void btrfs_get_ordered_extents_for_logging(struct btrfs_inode *inode,
206 void btrfs_lock_and_flush_ordered_range(struct btrfs_inode *inode, u64 start,
[all …]
Ddelayed-inode.h115 struct btrfs_inode *dir,
120 struct btrfs_inode *dir, u64 index);
122 int btrfs_inode_delayed_dir_index_count(struct btrfs_inode *inode);
130 struct btrfs_inode *inode);
132 void btrfs_remove_delayed_node(struct btrfs_inode *inode);
133 void btrfs_kill_delayed_inode_items(struct btrfs_inode *inode);
134 int btrfs_commit_inode_delayed_inode(struct btrfs_inode *inode);
139 struct btrfs_inode *inode);
141 int btrfs_delayed_delete_inode_ref(struct btrfs_inode *inode);
162 void btrfs_log_get_delayed_items(struct btrfs_inode *inode,
[all …]
Dbtrfs_inode.h73 struct btrfs_inode { struct
256 static inline struct btrfs_inode *BTRFS_I(const struct inode *inode) in BTRFS_I() argument
258 return container_of(inode, struct btrfs_inode, vfs_inode); in BTRFS_I()
279 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
291 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
298 static inline void btrfs_i_size_write(struct btrfs_inode *inode, u64 size) in btrfs_i_size_write()
304 static inline bool btrfs_is_free_space_inode(struct btrfs_inode *inode) in btrfs_is_free_space_inode()
314 static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode, in btrfs_mod_outstanding_extents()
333 static inline void btrfs_set_inode_last_sub_trans(struct btrfs_inode *inode) in btrfs_set_inode_last_sub_trans()
345 static inline void btrfs_set_inode_full_sync(struct btrfs_inode *inode) in btrfs_set_inode_full_sync()
[all …]
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,
12 void btrfs_free_reserved_data_space(struct btrfs_inode *inode,
14 void btrfs_delalloc_release_space(struct btrfs_inode *inode,
19 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes,
21 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode,
Dtree-log.h90 struct btrfs_inode *dir, u64 index);
94 struct btrfs_inode *inode, u64 dirid);
98 struct btrfs_inode *dir, struct btrfs_inode *inode,
101 struct btrfs_inode *dir);
103 struct dentry *old_dentry, struct btrfs_inode *old_dir,
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()
189 void btrfs_free_reserved_data_space(struct btrfs_inode *inode, in btrfs_free_reserved_data_space()
216 static void btrfs_inode_rsv_release(struct btrfs_inode *inode, bool qgroup_free) in btrfs_inode_rsv_release()
241 struct btrfs_inode *inode) in btrfs_calculate_inode_block_rsv_size()
298 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_reserve_metadata()
389 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata()
417 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents()
459 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode, in btrfs_delalloc_reserve_space()
490 void btrfs_delalloc_release_space(struct btrfs_inode *inode, in btrfs_delalloc_release_space()
Dordered-data.c164 int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, in btrfs_add_ordered_extent()
296 void btrfs_mark_ordered_io_finished(struct btrfs_inode *inode, in btrfs_mark_ordered_io_finished()
437 bool btrfs_dec_test_ordered_pending(struct btrfs_inode *inode, in btrfs_dec_test_ordered_pending()
519 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode, in btrfs_remove_ordered_extent() argument
523 struct btrfs_root *root = btrfs_inode->root; in btrfs_remove_ordered_extent()
533 freespace_inode = btrfs_is_free_space_inode(btrfs_inode); in btrfs_remove_ordered_extent()
537 spin_lock(&btrfs_inode->lock); in btrfs_remove_ordered_extent()
538 btrfs_mod_outstanding_extents(btrfs_inode, -1); in btrfs_remove_ordered_extent()
539 spin_unlock(&btrfs_inode->lock); in btrfs_remove_ordered_extent()
547 btrfs_delalloc_release_metadata(btrfs_inode, release, false); in btrfs_remove_ordered_extent()
[all …]
Dverity.c103 static int drop_verity_items(struct btrfs_inode *inode, u8 key_type) in drop_verity_items()
182 int btrfs_drop_verity_items(struct btrfs_inode *inode) in btrfs_drop_verity_items()
211 static int write_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in write_key_bytes()
291 static int read_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in read_key_bytes()
420 static int del_orphan(struct btrfs_trans_handle *trans, struct btrfs_inode *inode) in del_orphan()
452 static int rollback_verity(struct btrfs_inode *inode) in rollback_verity()
518 static int finish_verity(struct btrfs_inode *inode, const void *desc, in finish_verity()
578 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_begin_enable_verity()
627 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_end_enable_verity()
Dprops.h16 int btrfs_validate_prop(const struct btrfs_inode *inode, const char *name,
18 bool btrfs_ignore_prop(const struct btrfs_inode *inode, const char *name);
Dextent_map.h66 struct btrfs_inode;
109 void btrfs_drop_extent_map_range(struct btrfs_inode *inode,
112 int btrfs_replace_extent_map_range(struct btrfs_inode *inode,
Ddelayed-inode.c56 struct btrfs_inode *btrfs_inode) in btrfs_get_delayed_node() argument
58 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_delayed_node()
59 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_delayed_node()
62 node = READ_ONCE(btrfs_inode->delayed_node); in btrfs_get_delayed_node()
72 if (btrfs_inode->delayed_node) { in btrfs_get_delayed_node()
74 BUG_ON(btrfs_inode->delayed_node != node); in btrfs_get_delayed_node()
97 btrfs_inode->delayed_node = node; in btrfs_get_delayed_node()
112 struct btrfs_inode *btrfs_inode) in btrfs_get_or_create_delayed_node() argument
115 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_or_create_delayed_node()
116 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_or_create_delayed_node()
[all …]
Dextent_io.h62 struct btrfs_inode;
158 int extent_fiemap(struct btrfs_inode *inode, struct fiemap_extent_info *fieinfo,
242 void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end,
278 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start, u64 end);
279 int btrfs_clean_io_failure(struct btrfs_inode *inode, u64 start,
Dqgroup.h361 int btrfs_qgroup_reserve_data(struct btrfs_inode *inode,
363 int btrfs_qgroup_release_data(struct btrfs_inode *inode, u64 start, u64 len);
364 int btrfs_qgroup_free_data(struct btrfs_inode *inode,
422 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode);
Dprops.c20 int (*validate)(const struct btrfs_inode *inode, const char *value,
24 bool (*ignore)(const struct btrfs_inode *inode);
60 int btrfs_validate_prop(const struct btrfs_inode *inode, const char *name, in btrfs_validate_prop()
90 bool btrfs_ignore_prop(const struct btrfs_inode *inode, const char *name) in btrfs_ignore_prop()
277 static int prop_compression_validate(const struct btrfs_inode *inode, in prop_compression_validate()
339 static bool prop_compression_ignore(const struct btrfs_inode *inode) in prop_compression_ignore()
Dinode-item.h13 struct btrfs_inode;
27 struct btrfs_inode *inode;
Dctree.h2993 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes);
2995 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes,
3279 int name_len, struct btrfs_inode *dir,
3336 blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio,
3341 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode,
3346 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start,
3348 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start,
3350 void btrfs_inode_safe_disk_i_size_write(struct btrfs_inode *inode, u64 new_i_size);
3371 struct btrfs_inode *inode);
3373 int btrfs_set_inode_index(struct btrfs_inode *dir, u64 *index);
[all …]
Dinode.c117 static noinline int cow_file_range(struct btrfs_inode *inode,
122 static struct extent_map *create_io_em(struct btrfs_inode *inode, u64 start,
188 static inline void btrfs_cleanup_ordered_extents(struct btrfs_inode *inode, in btrfs_cleanup_ordered_extents()
283 struct btrfs_inode *inode, bool extent_inserted, in insert_inline_extent()
391 static noinline int cow_file_range_inline(struct btrfs_inode *inode, u64 size, in cow_file_range_inline()
527 static inline int inode_need_compress(struct btrfs_inode *inode, u64 start, in inode_need_compress()
586 static inline void inode_should_defrag(struct btrfs_inode *inode, in inode_should_defrag()
907 static int submit_uncompressed_range(struct btrfs_inode *inode, in submit_uncompressed_range()
954 static int submit_one_async_extent(struct btrfs_inode *inode, in submit_one_async_extent()
1079 struct btrfs_inode *inode = BTRFS_I(async_chunk->inode); in submit_compressed_extents()
[all …]
Dzoned.h58 bool btrfs_use_zone_append(struct btrfs_inode *inode, u64 start);
187 static inline bool btrfs_use_zone_append(struct btrfs_inode *inode, u64 start) in btrfs_use_zone_append()
398 static inline void btrfs_zoned_data_reloc_lock(struct btrfs_inode *inode) in btrfs_zoned_data_reloc_lock()
406 static inline void btrfs_zoned_data_reloc_unlock(struct btrfs_inode *inode) in btrfs_zoned_data_reloc_unlock()
Dtree-log.c98 struct btrfs_inode *inode,
902 struct btrfs_inode *dir, in unlink_inode_for_log_replay()
903 struct btrfs_inode *inode, in unlink_inode_for_log_replay()
931 struct btrfs_inode *dir, in drop_one_dir_item()
1063 struct btrfs_inode *dir, in __add_inode_ref()
1064 struct btrfs_inode *inode, in __add_inode_ref()
1287 struct btrfs_inode *inode, in unlink_old_inode_refs()
1515 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_extrefs()
1559 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_refs()
1808 struct btrfs_inode *dir, in delete_conflicting_dir_entry()
[all …]
Dcompression.h11 struct btrfs_inode;
93 blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
Dextent_io.c484 void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end, in extent_clear_unlock_delalloc()
494 static int insert_failrec(struct btrfs_inode *inode, in insert_failrec()
507 static struct io_failure_record *get_failrec(struct btrfs_inode *inode, u64 start) in get_failrec()
520 static void free_io_failure(struct btrfs_inode *inode, in free_io_failure()
671 int btrfs_clean_io_failure(struct btrfs_inode *inode, u64 start, in btrfs_clean_io_failure()
715 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start, u64 end) in btrfs_free_io_failure_record()
902 struct btrfs_inode *inode = BTRFS_I(page->mapping->host); in end_sector_io()
982 struct btrfs_inode *inode; in end_extent_writepage()
1063 struct btrfs_inode *inode;
1083 struct btrfs_inode *inode, u64 start, u64 end, in endio_readpage_release_extent()
[all …]
Dfile.c87 static int __btrfs_add_inode_defrag(struct btrfs_inode *inode, in __btrfs_add_inode_defrag()
140 struct btrfs_inode *inode, u32 extent_thresh) in btrfs_add_inode_defrag()
443 int btrfs_dirty_pages(struct btrfs_inode *inode, struct page **pages, in btrfs_dirty_pages()
517 struct btrfs_root *root, struct btrfs_inode *inode, in btrfs_drop_extents()
910 struct btrfs_inode *inode, u64 start, u64 end) in btrfs_mark_extent_written()
1292 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct page **pages, in lock_and_cleanup_extent_if_need()
1376 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos, in btrfs_check_nocow_lock()
1416 void btrfs_check_nocow_unlock(struct btrfs_inode *inode) in btrfs_check_nocow_unlock()
1964 struct btrfs_inode *inode = BTRFS_I(file_inode(file)); in btrfs_do_write_iter()
2056 struct btrfs_inode *inode = BTRFS_I(ctx->inode); in skip_inode_logging()
[all …]
Dfile-item.c44 void btrfs_inode_safe_disk_i_size_write(struct btrfs_inode *inode, u64 new_i_size) in btrfs_inode_safe_disk_i_size_write()
81 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start, in btrfs_inode_set_file_extent_range()
109 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start, in btrfs_inode_clear_file_extent_range()
644 blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio, in btrfs_csum_one_bio()
1209 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, in btrfs_extent_item_to_extent_map()
Dtransaction.h171 struct btrfs_inode *inode) in btrfs_set_inode_last_trans()
/linux-6.1.9/include/trace/events/
Dbtrfs.h14 struct btrfs_inode;
285 TP_PROTO(const struct btrfs_root *root, const struct btrfs_inode *inode,
373 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
428 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
469 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
478 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
487 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
496 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
517 TP_PROTO(const struct btrfs_inode *inode,
569 TP_PROTO(const struct btrfs_inode *inode,
[all …]

12