Home
last modified time | relevance | path

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

123

/linux-6.15/fs/btrfs/
H A Dbtrfs_inode.h127 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()
540 void btrfs_del_delalloc_inode(struct btrfs_inode *inode);
544 struct btrfs_inode *dir, struct btrfs_inode *inode,
547 struct btrfs_inode *parent_inode, struct btrfs_inode *inode,
583 void btrfs_clear_delalloc_extent(struct btrfs_inode *inode,
587 void btrfs_split_delalloc_extent(struct btrfs_inode *inode,
602 struct btrfs_inode *inode);
604 struct btrfs_inode *inode);
[all …]
H A Ddelayed-inode.h23 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);
159 void btrfs_log_get_delayed_items(struct btrfs_inode *inode,
[all …]
H A Dordered-data.h21 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 …]
H A 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);
H A 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);
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);
H A Dfile.h17 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,
H A 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,
H A 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,
H A Dprops.c27 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 …]
H A Dordered-data.c211 struct btrfs_inode *inode = entry->inode; in insert_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()
635 void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode, in btrfs_remove_ordered_extent() argument
652 spin_lock(&btrfs_inode->lock); in btrfs_remove_ordered_extent()
654 spin_unlock(&btrfs_inode->lock); in btrfs_remove_ordered_extent()
672 rb_erase(node, &btrfs_inode->ordered_tree); in btrfs_remove_ordered_extent()
675 btrfs_inode->ordered_tree_last = NULL; in btrfs_remove_ordered_extent()
[all …]
H A 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 …]
H A Dfile-item.h21 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);
H A 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()
H A Ddefrag.h10 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);
H A Dfiemap.c369 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()
926 ret = extent_fiemap(btrfs_inode, fieinfo, start, len); in btrfs_fiemap()
[all …]
H A 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()
H A Ddelayed-inode.c68 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()
124 struct btrfs_inode *btrfs_inode) in btrfs_get_or_create_delayed_node() argument
128 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_or_create_delayed_node()
164 btrfs_inode->delayed_node = node; in btrfs_get_or_create_delayed_node()
1211 struct btrfs_inode *inode) in btrfs_commit_inode_delayed_items()
1464 struct btrfs_inode *dir, in btrfs_insert_delayed_dir_index()
1819 struct btrfs_inode *inode) in fill_stack_inode_item()
[all …]
H A Dtree-log.c105 struct btrfs_inode *inode,
144 struct btrfs_inode *inode; in btrfs_iget_logging()
614 struct btrfs_inode *inode; in read_one_inode()
936 struct btrfs_inode *inode; in drop_one_dir_item()
1314 struct btrfs_inode *dir; in unlink_old_inode_refs()
1719 struct btrfs_inode *inode; in link_to_fixup_dir()
1759 struct btrfs_inode *inode; in insert_one_name()
1760 struct btrfs_inode *dir; in insert_one_name()
1840 struct btrfs_inode *dir; in replay_one_name()
2295 struct btrfs_inode *dir; in replay_dir_deletes()
[all …]
H A Dextent_map.c80 static void remove_em(struct btrfs_inode *inode, struct extent_map *em) in remove_em()
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()
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()
762 static void drop_all_extent_maps_fast(struct btrfs_inode *inode) in drop_all_extent_maps_fast()
1002 int btrfs_replace_extent_map_range(struct btrfs_inode *inode, in btrfs_replace_extent_map_range()
1198 struct btrfs_inode *inode; in find_first_inode_to_shrink()
[all …]
H A Dqgroup.h24 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);
H A Dreflink.c56 static int copy_inline_to_page(struct btrfs_inode *inode, in copy_inline_to_page()
168 static int clone_copy_inline_extent(struct btrfs_inode *inode, in clone_copy_inline_extent()
620 static void btrfs_double_mmap_lock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_lock()
628 static void btrfs_double_mmap_unlock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_unlock()
634 static int btrfs_extent_same_range(struct btrfs_inode *src, u64 loff, u64 len, in btrfs_extent_same_range()
635 struct btrfs_inode *dst, u64 dst_loff) in btrfs_extent_same_range()
780 struct btrfs_inode *inode_in = BTRFS_I(file_inode(file_in)); in btrfs_remap_file_range_prep()
781 struct btrfs_inode *inode_out = BTRFS_I(file_inode(file_out)); in btrfs_remap_file_range_prep()
866 struct btrfs_inode *src_inode = BTRFS_I(file_inode(src_file)); in btrfs_remap_file_range()
867 struct btrfs_inode *dst_inode = BTRFS_I(file_inode(dst_file)); in btrfs_remap_file_range()
H A Dinode.c732 struct btrfs_inode *inode;
2743 struct btrfs_inode *inode;
4318 struct btrfs_inode *dir, struct btrfs_inode *inode, in btrfs_unlink_inode()
4557 struct btrfs_inode *inode; in btrfs_prune_dentries()
5592 struct btrfs_inode *entry; in btrfs_del_inode_from_root()
5657 struct btrfs_inode *inode; in btrfs_iget_path()
5680 struct btrfs_inode *inode; in btrfs_iget()
5712 struct btrfs_inode *inode; in new_simple_dir()
5763 struct btrfs_inode *inode; in btrfs_lookup_dentry()
6557 struct btrfs_inode *parent_inode, struct btrfs_inode *inode, in btrfs_add_link()
[all …]
H A Dioctl.h13 struct btrfs_inode;
23 void btrfs_sync_inode_flags_to_i_flags(struct btrfs_inode *inode);
H A Dexport.c78 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()
H A Dbio.h17 struct btrfs_inode;
39 struct btrfs_inode *inode;

123