Home
last modified time | relevance | path

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

123

/linux-6.14.4/fs/btrfs/
Dbtrfs_inode.h127 struct btrfs_inode { struct
343 static inline u64 btrfs_get_first_dir_index_to_log(const struct btrfs_inode *inode) in btrfs_get_first_dir_index_to_log() argument
348 static inline void btrfs_set_first_dir_index_to_log(struct btrfs_inode *inode, in btrfs_set_first_dir_index_to_log()
357 struct inode *: container_of(_inode, struct btrfs_inode, vfs_inode), \
358 const struct inode *: (const struct btrfs_inode *)container_of( \
359 _inode, const struct btrfs_inode, vfs_inode))
379 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
390 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
397 static inline void btrfs_get_inode_key(const struct btrfs_inode *inode, in btrfs_get_inode_key()
405 static inline void btrfs_set_inode_number(struct btrfs_inode *inode, u64 ino) in btrfs_set_inode_number()
[all …]
Ddelayed-inode.h23 struct btrfs_inode;
112 struct btrfs_inode *dir,
117 struct btrfs_inode *dir, u64 index);
119 int btrfs_inode_delayed_dir_index_count(struct btrfs_inode *inode);
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);
131 int btrfs_commit_inode_delayed_inode(struct btrfs_inode *inode);
135 struct btrfs_inode *inode);
137 int btrfs_delayed_delete_inode_ref(struct btrfs_inode *inode);
[all …]
Dordered-data.h20 struct btrfs_inode;
133 struct btrfs_inode *inode;
163 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode,
168 void btrfs_mark_ordered_io_finished(struct btrfs_inode *inode,
171 bool btrfs_dec_test_ordered_pending(struct btrfs_inode *inode,
188 struct btrfs_inode *inode, u64 file_offset,
192 struct btrfs_ordered_extent *btrfs_lookup_ordered_extent(struct btrfs_inode *inode,
195 int btrfs_wait_ordered_range(struct btrfs_inode *inode, u64 start, u64 len);
197 btrfs_lookup_first_ordered_extent(struct btrfs_inode *inode, u64 file_offset);
199 struct btrfs_inode *inode, u64 file_offset, u64 len);
[all …]
Ddelalloc-space.h9 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,
23 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes,
25 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode,
27 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes,
29 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes);
Dfile.h15 struct btrfs_inode;
25 struct btrfs_root *root, struct btrfs_inode *inode,
27 int btrfs_replace_file_extents(struct btrfs_inode *inode,
33 struct btrfs_inode *inode, u64 start, u64 end);
37 int btrfs_dirty_folio(struct btrfs_inode *inode, struct folio *folio, loff_t pos,
39 int btrfs_fdatawrite_range(struct btrfs_inode *inode, loff_t start, loff_t end);
40 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos,
42 void btrfs_check_nocow_unlock(struct btrfs_inode *inode);
43 bool btrfs_find_delalloc_in_range(struct btrfs_inode *inode, u64 start, u64 end,
Dtree-log.h40 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,
Dextent_map.h14 struct btrfs_inode;
109 struct btrfs_inode;
172 void remove_extent_mapping(struct btrfs_inode *inode, struct extent_map *em);
173 int split_extent_map(struct btrfs_inode *inode, u64 start, u64 len, u64 pre,
180 int unpin_extent_cache(struct btrfs_inode *inode, u64 start, u64 len, u64 gen);
181 void clear_em_logging(struct btrfs_inode *inode, struct extent_map *em);
184 int btrfs_add_extent_mapping(struct btrfs_inode *inode,
186 void btrfs_drop_extent_map_range(struct btrfs_inode *inode,
189 int btrfs_replace_extent_map_range(struct btrfs_inode *inode,
Dordered-data.c127 static inline struct rb_node *ordered_tree_search(struct btrfs_inode *inode, in ordered_tree_search()
149 struct btrfs_inode *inode, u64 file_offset, u64 num_bytes, in alloc_ordered_extent()
211 struct btrfs_inode *inode = entry->inode; in insert_ordered_extent()
266 struct btrfs_inode *inode, u64 file_offset, in btrfs_alloc_ordered_extent()
313 struct btrfs_inode *inode = entry->inode; in btrfs_add_ordered_sum()
338 struct btrfs_inode *inode = ordered->inode; in can_finish_ordered_extent()
390 struct btrfs_inode *inode = ordered->inode; in btrfs_queue_ordered_fn()
403 struct btrfs_inode *inode = ordered->inode; in btrfs_finish_ordered_extent()
462 void btrfs_mark_ordered_io_finished(struct btrfs_inode *inode, in btrfs_mark_ordered_io_finished()
554 bool btrfs_dec_test_ordered_pending(struct btrfs_inode *inode, in btrfs_dec_test_ordered_pending()
[all …]
Ddelalloc-space.c114 int btrfs_alloc_data_chunk_ondemand(const 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()
280 static void calc_inode_reservations(struct btrfs_inode *inode, in calc_inode_reservations()
305 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_reserve_metadata()
395 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata()
425 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents()
467 int btrfs_delalloc_reserve_space(struct btrfs_inode *inode, in btrfs_delalloc_reserve_space()
[all …]
Dprops.h12 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);
Dfile-item.h19 struct btrfs_inode;
75 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode,
79 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start,
81 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start, u64 len);
82 void btrfs_inode_safe_disk_i_size_write(struct btrfs_inode *inode, u64 new_i_size);
Dverity.h7 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()
Dfiemap.c306 static int fiemap_next_leaf_item(struct btrfs_inode *inode, struct btrfs_path *path) in fiemap_next_leaf_item()
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()
884 struct btrfs_inode *btrfs_inode = BTRFS_I(inode); in btrfs_fiemap() local
905 ret = btrfs_wait_ordered_range(btrfs_inode, 0, LLONG_MAX); in btrfs_fiemap()
910 btrfs_inode_lock(btrfs_inode, BTRFS_ILOCK_SHARED); in btrfs_fiemap()
919 ret = btrfs_wait_ordered_range(btrfs_inode, 0, LLONG_MAX); in btrfs_fiemap()
921 btrfs_inode_unlock(btrfs_inode, BTRFS_ILOCK_SHARED); in btrfs_fiemap()
[all …]
Dextent_map.c80 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()
412 int unpin_extent_cache(struct btrfs_inode *inode, u64 start, u64 len, u64 gen) in unpin_extent_cache()
452 void clear_em_logging(struct btrfs_inode *inode, struct extent_map *em) in clear_em_logging()
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()
582 void remove_extent_mapping(struct btrfs_inode *inode, struct extent_map *em) in remove_extent_mapping()
595 static void replace_extent_mapping(struct btrfs_inode *inode, in replace_extent_mapping()
643 static noinline int merge_extent_mapping(struct btrfs_inode *inode, in merge_extent_mapping()
697 int btrfs_add_extent_mapping(struct btrfs_inode *inode, in btrfs_add_extent_mapping()
[all …]
Dverity.c108 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()
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 …]
Dprops.c27 int (*validate)(const struct btrfs_inode *inode, const char *value,
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()
284 static int prop_compression_validate(const struct btrfs_inode *inode, in prop_compression_validate()
346 static bool prop_compression_ignore(const struct btrfs_inode *inode) in prop_compression_ignore()
Dqgroup.h24 struct btrfs_inode;
386 int btrfs_qgroup_reserve_data(struct btrfs_inode *inode,
388 int btrfs_qgroup_release_data(struct btrfs_inode *inode, u64 start, u64 len, u64 *released);
389 int btrfs_qgroup_free_data(struct btrfs_inode *inode,
435 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode);
Dinode.c116 static int btrfs_truncate(struct btrfs_inode *inode, bool skip_writeback);
118 static noinline int run_delalloc_cow(struct btrfs_inode *inode,
211 static void print_data_reloc_error(const struct btrfs_inode *inode, u64 file_off, in print_data_reloc_error()
304 static void __cold btrfs_print_data_csum_error(struct btrfs_inode *inode, in btrfs_print_data_csum_error()
345 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock()
375 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock()
395 static inline void btrfs_cleanup_ordered_extents(struct btrfs_inode *inode, in btrfs_cleanup_ordered_extents()
421 static int btrfs_dirty_inode(struct btrfs_inode *inode);
452 struct btrfs_inode *inode, bool extent_inserted, in insert_inline_extent()
558 static bool can_cow_file_range_inline(struct btrfs_inode *inode, in can_cow_file_range_inline()
[all …]
Dextent-io-tree.h15 struct btrfs_inode;
109 struct btrfs_inode *inode;
133 struct btrfs_inode *extent_io_tree_to_inode(struct extent_io_tree *tree);
134 const struct btrfs_inode *extent_io_tree_to_inode_const(const struct extent_io_tree *tree);
Dbio.h17 struct btrfs_inode;
39 struct btrfs_inode *inode;
Dsend.h14 struct btrfs_inode;
185 long btrfs_ioctl_send(struct btrfs_inode *inode, const struct btrfs_ioctl_send_args *arg);
Dinode-item.h16 struct btrfs_inode;
30 struct btrfs_inode *inode;
Dtree-log.c105 struct btrfs_inode *inode,
918 struct btrfs_inode *dir, in unlink_inode_for_log_replay()
919 struct btrfs_inode *inode, in unlink_inode_for_log_replay()
946 struct btrfs_inode *dir, in drop_one_dir_item()
1072 struct btrfs_inode *dir, in __add_inode_ref()
1073 struct btrfs_inode *inode, in __add_inode_ref()
1284 struct btrfs_inode *inode, in unlink_old_inode_refs()
1504 static int count_inode_extrefs(struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_extrefs()
1547 static int count_inode_refs(struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_refs()
1797 struct btrfs_inode *dir, in delete_conflicting_dir_entry()
[all …]
/linux-6.14.4/fs/btrfs/tests/
Dextent-map-tests.c14 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 …]

123