Home
last modified time | relevance | path

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

12

/linux/fs/btrfs/
H A Dbtrfs_inode.h127 struct btrfs_inode { struct
336 static inline u64 btrfs_get_first_dir_index_to_log(const struct btrfs_inode *inode) in btrfs_get_first_dir_index_to_log() argument
341 static inline void btrfs_set_first_dir_index_to_log(struct btrfs_inode *inode, in btrfs_set_first_dir_index_to_log()
350 struct inode *: container_of(_inode, struct btrfs_inode, vfs_inode), \
351 const struct inode *: (const struct btrfs_inode *)container_of( \
352 _inode, const struct btrfs_inode, vfs_inode))
366 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
371 static inline void btrfs_get_inode_key(const struct btrfs_inode *inode, in btrfs_get_inode_key()
379 static inline void btrfs_set_inode_number(struct btrfs_inode *inode, u64 ino) in btrfs_set_inode_number()
384 static inline void btrfs_i_size_write(struct btrfs_inode *inode, u64 size) in btrfs_i_size_write()
[all …]
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 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()
286 int btrfs_load_inode_props(struct btrfs_inode *inode, struct btrfs_path *path) in btrfs_load_inode_props()
295 static int prop_compression_validate(const struct btrfs_inode *inode, in prop_compression_validate()
314 static int prop_compression_apply(struct btrfs_inode *inode, const char *value, in prop_compression_apply()
[all …]
H A Dreflink.c23 struct btrfs_inode *inode, in clone_finish_inode_update()
56 static int copy_inline_to_page(struct btrfs_inode *inode, in copy_inline_to_page()
165 static int clone_copy_inline_extent(struct btrfs_inode *inode, in clone_copy_inline_extent()
396 static int btrfs_clone(struct btrfs_inode *src, struct btrfs_inode *inode, in btrfs_clone()
673 static void btrfs_double_mmap_lock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_lock()
681 static void btrfs_double_mmap_unlock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_unlock()
687 static int btrfs_extent_same_range(struct btrfs_inode *src, u64 loff, u64 len, in btrfs_extent_same_range()
688 struct btrfs_inode *dst, u64 dst_loff) in btrfs_extent_same_range()
711 static int btrfs_extent_same(struct btrfs_inode *src, u64 loff, u64 olen, in btrfs_extent_same()
712 struct btrfs_inode *dst, u64 dst_loff) in btrfs_extent_same()
[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 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.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()
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_SHARED); in btrfs_fiemap()
917 ret = btrfs_wait_ordered_range(btrfs_inode, 0, LLONG_MAX); in btrfs_fiemap()
919 btrfs_inode_unlock(btrfs_inode, BTRFS_ILOCK_SHARED); in btrfs_fiemap()
[all …]
H A Dverity.c108 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 *inode = BTRFS_I(file_inode(filp)); in btrfs_end_enable_verity()
H A Dextent_map.c80 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 *inode, in merge_extent_mapping()
708 int btrfs_add_extent_mapping(struct btrfs_inode *inode, in btrfs_add_extent_mapping()
[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) in btrfs_iget_logging()
252 struct btrfs_inode *inode; in btrfs_iget_logging()
706 struct btrfs_inode *inode = NULL; in replay_one_extent()
1015 struct btrfs_inode *dir, in unlink_inode_for_log_replay()
1016 struct btrfs_inode *inode, in unlink_inode_for_log_replay()
1055 struct btrfs_inode *dir, in drop_one_dir_item()
1059 struct btrfs_inode *inode; in drop_one_dir_item()
1183 struct btrfs_inode *dir, in unlink_refs_not_in_log()
1184 struct btrfs_inode *inode) in unlink_refs_not_in_log()
[all …]
H A Dinode.c119 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 btrfs_print_data_csum_error()
349 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock()
379 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock()
399 static inline void btrfs_cleanup_ordered_extents(struct btrfs_inode *inode, in btrfs_cleanup_ordered_extents()
405 static int btrfs_dirty_inode(struct btrfs_inode *inode);
436 struct btrfs_inode *inode, bool extent_inserted, in insert_inline_extent()
543 static bool can_cow_file_range_inline(struct btrfs_inode *inode, in can_cow_file_range_inline()
[all …]
H A Dioctl.h13 struct btrfs_inode;
23 void btrfs_sync_inode_flags_to_i_flags(struct btrfs_inode *inode);
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 Ddir-item.h13 struct btrfs_inode;
20 const struct fscrypt_str *name, struct btrfs_inode *dir,
H A Dlzo.c262 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()
581 struct btrfs_inode *inode = folio_to_inode(dest_folio); in lzo_decompress()
H A Dinode-item.h16 struct btrfs_inode;
30 struct btrfs_inode *inode;
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 Dfile.c63 int btrfs_dirty_folio(struct btrfs_inode *inode, struct folio *folio, loff_t pos, in btrfs_dirty_folio()
122 struct btrfs_root *root, struct btrfs_inode *inode, in btrfs_drop_extents()
533 struct btrfs_inode *inode, u64 start, u64 end) in btrfs_mark_extent_written()
885 lock_and_cleanup_extent(struct btrfs_inode *inode, struct folio *folio, in lock_and_cleanup_extent()
959 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos, in btrfs_check_nocow_lock()
1022 void btrfs_check_nocow_unlock(struct btrfs_inode *inode) in btrfs_check_nocow_unlock()
1074 static void release_space(struct btrfs_inode *inode, struct extent_changeset *data_reserved, in release_space()
1098 static ssize_t reserve_space(struct btrfs_inode *inode, in reserve_space()
1148 static void shrink_reserved_space(struct btrfs_inode *inode, in shrink_reserved_space()
1165 static size_t calc_write_bytes(const struct btrfs_inode *inode, in calc_write_bytes()
[all …]
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, in defrag_collect_targets()
1133 static void defrag_one_locked_target(struct btrfs_inode *inode, in defrag_one_locked_target()
1164 static int defrag_one_range(struct btrfs_inode *inode, u64 start, u32 len, in defrag_one_range()
1261 static int defrag_one_cluster(struct btrfs_inode *inode, in defrag_one_cluster()
1345 int btrfs_defrag_file(struct btrfs_inode *inode, struct file_ra_state *ra, in btrfs_defrag_file()
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 Dtransaction.h199 struct btrfs_inode *dir;
216 struct btrfs_inode *inode) in btrfs_set_inode_last_trans()
/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 *inode,
[all …]
/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 …]

12