Home
last modified time | relevance | path

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

123

/linux/fs/btrfs/
A Dbtrfs_inode.h127 struct btrfs_inode { struct
359 _inode, const struct btrfs_inode, vfs_inode))
379 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
531 void btrfs_del_delalloc_inode(struct btrfs_inode *inode);
535 struct btrfs_inode *dir, struct btrfs_inode *inode,
538 struct btrfs_inode *parent_inode, struct btrfs_inode *inode,
574 void btrfs_clear_delalloc_extent(struct btrfs_inode *inode,
578 void btrfs_split_delalloc_extent(struct btrfs_inode *inode,
594 struct btrfs_inode *inode);
596 struct btrfs_inode *inode);
[all …]
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);
137 int btrfs_delayed_delete_inode_ref(struct btrfs_inode *inode);
146 bool btrfs_readdir_get_delayed_items(struct btrfs_inode *inode,
159 void btrfs_log_get_delayed_items(struct btrfs_inode *inode,
[all …]
A 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,
195 int btrfs_wait_ordered_range(struct btrfs_inode *inode, u64 start, u64 len);
199 struct btrfs_inode *inode, u64 file_offset, u64 len);
201 struct btrfs_inode *inode,
204 void btrfs_get_ordered_extents_for_logging(struct btrfs_inode *inode,
[all …]
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);
A 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_pages(struct btrfs_inode *inode, struct page **pages,
40 int btrfs_fdatawrite_range(struct btrfs_inode *inode, loff_t start, loff_t end);
41 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos,
43 void btrfs_check_nocow_unlock(struct btrfs_inode *inode);
44 bool btrfs_find_delalloc_in_range(struct btrfs_inode *inode, u64 start, u64 end,
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,
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,
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 …]
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 …]
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);
A 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);
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()
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 …]
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()
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()
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()
1217 struct btrfs_inode *inode) in btrfs_commit_inode_delayed_items()
1471 struct btrfs_inode *dir, in btrfs_insert_delayed_dir_index()
[all …]
A Dqgroup.h24 struct btrfs_inode;
379 int btrfs_qgroup_reserve_data(struct btrfs_inode *inode,
381 int btrfs_qgroup_release_data(struct btrfs_inode *inode, u64 start, u64 len, u64 *released);
382 int btrfs_qgroup_free_data(struct btrfs_inode *inode,
428 void btrfs_qgroup_check_reserved_leak(struct btrfs_inode *inode);
A 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()
A Dextent_map.c80 static void dec_evictable_extent_maps(struct btrfs_inode *inode) in dec_evictable_extent_maps()
339 static void try_merge_map(struct btrfs_inode *inode, struct extent_map *em) in try_merge_map()
454 void clear_em_logging(struct btrfs_inode *inode, struct extent_map *em) in clear_em_logging()
463 static inline void setup_extent_mapping(struct btrfs_inode *inode, in setup_extent_mapping()
490 static int add_extent_mapping(struct btrfs_inode *inode, in add_extent_mapping()
599 static void replace_extent_mapping(struct btrfs_inode *inode, in replace_extent_mapping()
647 static noinline int merge_extent_mapping(struct btrfs_inode *inode, in merge_extent_mapping()
701 int btrfs_add_extent_mapping(struct btrfs_inode *inode, in btrfs_add_extent_mapping()
766 static void drop_all_extent_maps_fast(struct btrfs_inode *inode) in drop_all_extent_maps_fast()
1006 int btrfs_replace_extent_map_range(struct btrfs_inode *inode, in btrfs_replace_extent_map_range()
[all …]
A Dinode.c781 struct btrfs_inode *inode;
2716 struct btrfs_inode *inode;
3438 struct btrfs_inode *inode; in btrfs_run_delayed_iputs()
4133 struct btrfs_inode *dir, in __btrfs_unlink_inode()
4236 struct btrfs_inode *dir, struct btrfs_inode *inode, in btrfs_unlink_inode()
4475 struct btrfs_inode *inode; in btrfs_prune_dentries()
5538 struct btrfs_inode *entry; in btrfs_del_inode_from_root()
6202 static void btrfs_inherit_iflags(struct btrfs_inode *inode, struct btrfs_inode *dir) in btrfs_inherit_iflags()
6483 struct btrfs_inode *parent_inode, struct btrfs_inode *inode, in btrfs_add_link()
7662 struct btrfs_inode *ei; in btrfs_alloc_inode()
[all …]
A Dbio.h17 struct btrfs_inode;
39 struct btrfs_inode *inode;
A 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);
A Dsend.h14 struct btrfs_inode;
185 long btrfs_ioctl_send(struct btrfs_inode *inode, const struct btrfs_ioctl_send_args *arg);
A Dinode-item.h16 struct btrfs_inode;
30 struct btrfs_inode *inode;
A Dtree-log.c105 struct btrfs_inode *inode,
1073 struct btrfs_inode *dir, in __add_inode_ref()
1074 struct btrfs_inode *inode, in __add_inode_ref()
1285 struct btrfs_inode *inode, in unlink_old_inode_refs()
1798 struct btrfs_inode *dir, in delete_conflicting_dir_entry()
3314 struct btrfs_inode *inode, in inode_logged()
3597 struct btrfs_inode *inode, in flush_dir_items_batch()
4176 struct btrfs_inode *inode, in truncate_inode_items()
5076 struct btrfs_inode *inode, in btrfs_log_all_xattrs()
7400 struct btrfs_inode *dir, struct btrfs_inode *inode, in btrfs_record_unlink_dir()
[all …]
/linux/fs/btrfs/tests/
A 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 …]

Completed in 74 milliseconds

123