Home
last modified time | relevance | path

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

12

/linux/fs/btrfs/
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 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 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()
276 int btrfs_load_inode_props(struct btrfs_inode *inode, struct btrfs_path *path) in btrfs_load_inode_props()
285 static int prop_compression_validate(const struct btrfs_inode *inode, in prop_compression_validate()
304 static int prop_compression_apply(struct btrfs_inode *inode, const char *value, in prop_compression_apply()
[all …]
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 Dfiemap.c4 #include "btrfs_inode.h"
306 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()
882 struct btrfs_inode *btrfs_inode = BTRFS_I(inode); in btrfs_fiemap() local
903 ret = btrfs_wait_ordered_range(btrfs_inode, 0, LLONG_MAX); in btrfs_fiemap()
908 btrfs_inode_lock(btrfs_inode, BTRFS_ILOCK_SHARE in btrfs_fiemap()
[all...]
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 Dverity.c15 #include "btrfs_inode.h"
108 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()
288 static int read_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in read_key_bytes()
416 static int del_orphan(struct btrfs_trans_handle *trans, struct btrfs_inode *inode) in del_orphan()
448 static int rollback_verity(struct btrfs_inode *inode) in rollback_verity()
514 static int finish_verity(struct btrfs_inode *inode, const void *desc, in finish_verity()
571 struct btrfs_inode *inode = BTRFS_I(file_inode(filp)); in btrfs_begin_enable_verity()
623 struct btrfs_inode *inod in btrfs_end_enable_verity()
[all...]
H A Dextent_map.c10 #include "btrfs_inode.h"
80 static void remove_em(struct btrfs_inode *inode, struct extent_map *em) in remove_em()
354 static void try_merge_map(struct btrfs_inode *inode, struct extent_map *em) in try_merge_map()
424 int btrfs_unpin_extent_cache(struct btrfs_inode *inode, u64 start, u64 len, u64 gen) in btrfs_unpin_extent_cache()
464 void btrfs_clear_em_logging(struct btrfs_inode *inode, struct extent_map *em) in btrfs_clear_em_logging()
473 static inline void setup_extent_mapping(struct btrfs_inode *inode, in setup_extent_mapping()
500 static int add_extent_mapping(struct btrfs_inode *inode, in add_extent_mapping()
593 void btrfs_remove_extent_mapping(struct btrfs_inode *inode, struct extent_map *em) in btrfs_remove_extent_mapping()
606 static void replace_extent_mapping(struct btrfs_inode *inode, in replace_extent_mapping()
654 static noinline int merge_extent_mapping(struct btrfs_inode *inod
[all...]
H A Ddelayed-inode.c69 struct btrfs_inode *btrfs_inode, in btrfs_get_delayed_node() argument
72 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_delayed_node()
73 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_delayed_node()
76 node = READ_ONCE(btrfs_inode->delayed_node); in btrfs_get_delayed_node()
87 if (btrfs_inode->delayed_node) { in btrfs_get_delayed_node()
90 BUG_ON(btrfs_inode->delayed_node != node); in btrfs_get_delayed_node()
116 btrfs_inode->delayed_node = node; in btrfs_get_delayed_node()
136 struct btrfs_inode *btrfs_inode, in btrfs_get_or_create_delayed_node() argument
140 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_or_create_delayed_node()
141 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_or_create_delayed_node()
[all …]
H A Dtree-log.c218 struct btrfs_inode *inode,
249 static struct btrfs_inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root)
252 struct btrfs_inode *inode;
723 struct btrfs_inode *inode = NULL; in replay_one_extent()
1032 struct btrfs_inode *dir, in replay_one_extent()
1033 struct btrfs_inode *inode, in replay_one_extent()
1072 struct btrfs_inode *dir, in unlink_inode_for_log_replay()
1076 struct btrfs_inode *inode;
1200 struct btrfs_inode *dir, in backref_in_log()
1201 struct btrfs_inode *inod in backref_in_log()
[all...]
H A Dinode.c41 #include "btrfs_inode.h"
119 static int btrfs_truncate(struct btrfs_inode *inode, bool skip_writeback);
121 static noinline int run_delalloc_cow(struct btrfs_inode *inode,
214 static void print_data_reloc_error(const struct btrfs_inode *inode, u64 file_off, in print_data_reloc_error()
308 static void __cold btrfs_print_data_csum_error(struct btrfs_inode *inode, in print_data_reloc_error()
349 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags)
379 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags)
399 static inline void btrfs_cleanup_ordered_extents(struct btrfs_inode *inode,
405 static int btrfs_dirty_inode(struct btrfs_inode *inode); in btrfs_cleanup_ordered_extents()
436 struct btrfs_inode *inod in btrfs_init_inode_security()
[all...]
H A Dexport.c84 struct btrfs_inode *inode; in btrfs_get_dentry()
154 struct btrfs_inode *dir = BTRFS_I(d_inode(child)); in btrfs_get_parent()
155 struct btrfs_inode *inode; in btrfs_get_parent()
233 struct btrfs_inode *inode = BTRFS_I(d_inode(child)); in btrfs_get_name()
234 struct btrfs_inode *dir = BTRFS_I(d_inode(parent)); in btrfs_get_name()
H A Dioctl.h13 struct btrfs_inode;
23 void btrfs_sync_inode_flags_to_i_flags(struct btrfs_inode *inode);
H A Ddir-item.h13 struct btrfs_inode;
20 const struct fscrypt_str *name, struct btrfs_inode *dir,
H A Dinode-item.h16 struct btrfs_inode;
30 struct btrfs_inode *inode;
H A Dfile.c25 #include "btrfs_inode.h"
63 int btrfs_dirty_folio(struct btrfs_inode *inode, struct folio *folio, loff_t pos,
122 struct btrfs_root *root, struct btrfs_inode *inode,
533 struct btrfs_inode *inode, u64 start, u64 end) in extent_mergeable()
886 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct folio *folio, in prepare_one_folio()
965 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos,
1028 void btrfs_check_nocow_unlock(struct btrfs_inode *inode) in btrfs_check_nocow_lock()
1080 static void release_space(struct btrfs_inode *inode, struct extent_changeset *data_reserved, in btrfs_write_check()
1104 static ssize_t reserve_space(struct btrfs_inode *inode, in release_space()
1154 static void shrink_reserved_space(struct btrfs_inode *inod in reserve_space()
[all...]
H A Dextent-io-tree.h15 struct btrfs_inode;
114 struct btrfs_inode *inode;
138 const struct btrfs_inode *btrfs_extent_io_tree_to_inode(const struct extent_io_tree *tree);
H A Dlzo.c20 #include "btrfs_inode.h"
262 struct btrfs_inode *inode = cb->bbio.inode; in lzo_compress_bio()
450 struct btrfs_inode *inode = cb->bbio.inode; in lzo_decompress_bio()
481 struct btrfs_inode *inode = cb->bbio.inode; in lzo_decompress_bio()
496 struct btrfs_inode *inode = cb->bbio.inode; in lzo_decompress_bio()
513 struct btrfs_inode *inode = cb->bbio.inode; in lzo_decompress_bio()
571 struct btrfs_inode *inode = folio_to_inode(dest_folio); in lzo_decompress()
H A Ddefrag.c79 static int btrfs_insert_inode_defrag(struct btrfs_inode *inode, in btrfs_insert_inode_defrag()
118 void btrfs_add_inode_defrag(struct btrfs_inode *inode, u32 extent_thresh) in btrfs_add_inode_defrag()
220 struct btrfs_inode *inode; in btrfs_run_defrag_inode()
607 static struct extent_map *defrag_get_extent(struct btrfs_inode *inode, in defrag_get_extent()
845 static struct folio *defrag_prepare_one_folio(struct btrfs_inode *inode, pgoff_t index) in defrag_prepare_one_folio()
937 static int defrag_collect_targets(struct btrfs_inode *inode,
1133 static int defrag_one_locked_target(struct btrfs_inode *inode,
1173 static int defrag_one_range(struct btrfs_inode *inode, u64 start, u32 len, in defrag_one_locked_target()
1252 static int defrag_one_cluster(struct btrfs_inode *inode, in defrag_one_range()
1338 int btrfs_defrag_file(struct btrfs_inode *inod in defrag_one_cluster()
[all...]
H A Dzlib.c149 struct btrfs_inode *inode = cb->bbio.inode; in zlib_compress_bio()
380 struct btrfs_inode *inode = cb->bbio.inode; in zlib_decompress_bio()
470 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zlib_decompress()
492 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zlib_decompress()
H A Dzstd.c400 struct btrfs_inode *inode = cb->bbio.inode; in zstd_compress_bio()
605 struct btrfs_inode *inode = cb->bbio.inode; in zstd_decompress_bio()
628 struct btrfs_inode *inode = cb->bbio.inode; in zstd_decompress_bio()
689 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zstd_decompress()
713 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zstd_decompress()
H A Dcompression.c27 #include "btrfs_inode.h"
61 static struct compressed_bio *alloc_compressed_bio(struct btrfs_inode *inode, in alloc_compressed_bio()
318 struct btrfs_inode *inode = ordered->inode; in btrfs_submit_compressed_write()
345 struct compressed_bio *btrfs_alloc_compressed_write(struct btrfs_inode *inode, in btrfs_alloc_compressed_write()
524 struct btrfs_inode *inode = bbio->inode; in add_ra_bio_pages()
985 struct btrfs_inode *inode = BTRFS_I(mapping->host);
1014 struct compressed_bio *btrfs_compress_bio(struct btrfs_inode *inode, in btrfs_compress_filemap_get_folio()
1560 int btrfs_compress_heuristic(struct btrfs_inode *inode, u64 start, u64 end) in heuristic_collect_sample()
H A Dfile-item.c46 void btrfs_inode_safe_disk_i_size_write(struct btrfs_inode *inode, u64 new_i_size) in btrfs_inode_safe_disk_i_size_write()
83 int btrfs_inode_set_file_extent_range(struct btrfs_inode *inode, u64 start, in btrfs_inode_set_file_extent_range()
112 int btrfs_inode_clear_file_extent_range(struct btrfs_inode *inode, u64 start, in btrfs_inode_clear_file_extent_range()
350 struct btrfs_inode *inode = bbio->inode; in btrfs_lookup_bio_sums()
778 struct btrfs_inode *inode = bbio->inode; in csum_one_bio()
818 struct btrfs_inode *inode = bbio->inode; in btrfs_csum_one_bio()
1323 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, in btrfs_extent_item_to_extent_map()
/linux/fs/btrfs/tests/
H 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()
258 struct btrfs_inode *inode, u64 start) in __test_case_3()
351 static int test_case_3(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_3()
367 struct btrfs_inode *inode, u64 start) in __test_case_4()
485 static int test_case_4(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_4()
497 static int add_compressed_extent(struct btrfs_inode *inode, in add_compressed_extent()
623 static int test_case_5(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_5()
710 static int test_case_6(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_6()
[all …]
/linux/include/trace/events/
H A Dbtrfs.h14 struct btrfs_inode;
352 TP_PROTO(const struct btrfs_root *root, const struct btrfs_inode *inode,
426 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
481 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
522 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
531 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
540 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
549 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
570 TP_PROTO(const struct btrfs_inode *inode,
622 TP_PROTO(const struct btrfs_inode *inod
[all...]

12