Home
last modified time | relevance | path

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

12

/linux/fs/btrfs/
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,
193 struct btrfs_ordered_extent *btrfs_lookup_ordered_extent(struct btrfs_inode *inode,
202 int btrfs_wait_ordered_range(struct btrfs_inode *inode, u64 start, u64 len);
204 btrfs_lookup_first_ordered_extent(struct btrfs_inode *inode, u64 file_offset);
206 struct btrfs_inode *inode, u64 file_offset, u64 len);
[all …]
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.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 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.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 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 Dreflink.c55 static int copy_inline_to_page(struct btrfs_inode *inode, in copy_inline_to_page()
166 static int clone_copy_inline_extent(struct btrfs_inode *inode, in clone_copy_inline_extent()
618 static void btrfs_double_mmap_lock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_lock()
626 static void btrfs_double_mmap_unlock(struct btrfs_inode *inode1, struct btrfs_inode *inode2) in btrfs_double_mmap_unlock()
632 static int btrfs_extent_same_range(struct btrfs_inode *src, u64 loff, u64 len, in btrfs_extent_same_range()
633 struct btrfs_inode *dst, u64 dst_loff) in btrfs_extent_same_range()
786 struct btrfs_inode *inode_in = BTRFS_I(file_inode(file_in)); in btrfs_remap_file_range_prep()
787 struct btrfs_inode *inode_out = BTRFS_I(file_inode(file_out)); in btrfs_remap_file_range_prep()
876 struct btrfs_inode *src_inode = BTRFS_I(file_inode(src_file)); in btrfs_remap_file_range()
877 struct btrfs_inode *dst_inode = BTRFS_I(file_inode(dst_file)); in btrfs_remap_file_range()
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 Dtree-log.c229 struct btrfs_inode *inode,
260 static struct btrfs_inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root) in btrfs_iget_logging()
263 struct btrfs_inode *inode; in btrfs_iget_logging()
734 struct btrfs_inode *inode = NULL; in replay_one_extent()
1036 struct btrfs_inode *dir, in unlink_inode_for_log_replay()
1037 struct btrfs_inode *inode, in unlink_inode_for_log_replay()
1076 struct btrfs_inode *dir, in drop_one_dir_item()
1080 struct btrfs_inode *inode; in drop_one_dir_item()
1204 struct btrfs_inode *dir, in unlink_refs_not_in_log()
1205 struct btrfs_inode *inode) in unlink_refs_not_in_log()
[all …]
H A Dinode.c120 static int btrfs_truncate(struct btrfs_inode *inode, bool skip_writeback);
122 static noinline int run_delalloc_cow(struct btrfs_inode *inode,
215 static void print_data_reloc_error(const struct btrfs_inode *inode, u64 file_off, in print_data_reloc_error()
311 static void __cold btrfs_print_data_csum_error(struct btrfs_inode *inode, in btrfs_print_data_csum_error()
352 int btrfs_inode_lock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_lock()
382 void btrfs_inode_unlock(struct btrfs_inode *inode, unsigned int ilock_flags) in btrfs_inode_unlock()
402 static inline void btrfs_cleanup_ordered_extents(struct btrfs_inode *inode, in btrfs_cleanup_ordered_extents()
430 static int btrfs_dirty_inode(struct btrfs_inode *inode);
461 struct btrfs_inode *inode, bool extent_inserted, in insert_inline_extent()
568 static bool can_cow_file_range_inline(struct btrfs_inode *inode, in can_cow_file_range_inline()
[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.c71 int btrfs_dirty_folio(struct btrfs_inode *inode, struct folio *folio, loff_t pos, in btrfs_dirty_folio()
139 struct btrfs_root *root, struct btrfs_inode *inode, in btrfs_drop_extents()
550 struct btrfs_inode *inode, u64 start, u64 end) in btrfs_mark_extent_written()
898 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct folio *folio, in lock_and_cleanup_extent_if_need()
977 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos, in btrfs_check_nocow_lock()
1040 void btrfs_check_nocow_unlock(struct btrfs_inode *inode) in btrfs_check_nocow_unlock()
1092 static void release_space(struct btrfs_inode *inode, struct extent_changeset *data_reserved, in release_space()
1116 static ssize_t reserve_space(struct btrfs_inode *inode, in reserve_space()
1166 static void shrink_reserved_space(struct btrfs_inode *inode, in shrink_reserved_space()
1183 static size_t calc_write_bytes(const struct btrfs_inode *inode, in calc_write_bytes()
[all …]
H A Dlzo.c278 struct btrfs_inode *inode = cb->bbio.inode; in lzo_compress_bio()
465 struct btrfs_inode *inode = cb->bbio.inode; in lzo_decompress_bio()
496 struct btrfs_inode *inode = cb->bbio.inode; in lzo_decompress_bio()
517 struct btrfs_inode *inode = cb->bbio.inode; in lzo_decompress_bio()
575 struct btrfs_inode *inode = folio_to_inode(dest_folio); in lzo_decompress()
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 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()
954 static int defrag_collect_targets(struct btrfs_inode *inode, in defrag_collect_targets()
1150 static int defrag_one_locked_target(struct btrfs_inode *inode, in defrag_one_locked_target()
1191 static int defrag_one_range(struct btrfs_inode *inode, u64 start, u32 len, in defrag_one_range()
1270 static int defrag_one_cluster(struct btrfs_inode *inode, in defrag_one_cluster()
1356 int btrfs_defrag_file(struct btrfs_inode *inode, struct file_ra_state *ra, in btrfs_defrag_file()
H A Dzlib.c150 struct btrfs_inode *inode = cb->bbio.inode; in zlib_compress_bio()
384 struct btrfs_inode *inode = cb->bbio.inode; in zlib_decompress_bio()
474 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zlib_decompress()
496 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zlib_decompress()
H A Dzstd.c401 struct btrfs_inode *inode = cb->bbio.inode; in zstd_compress_bio()
608 struct btrfs_inode *inode = cb->bbio.inode; in zstd_decompress_bio()
631 struct btrfs_inode *inode = cb->bbio.inode; in zstd_decompress_bio()
693 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zstd_decompress()
717 struct btrfs_inode *inode = folio_to_inode(dest_folio); in zstd_decompress()
/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;
283 TP_PROTO(const struct btrfs_root *root, const struct btrfs_inode *inode,
357 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
412 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
453 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
462 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
471 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
480 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l,
501 TP_PROTO(const struct btrfs_inode *inode,
553 TP_PROTO(const struct btrfs_inode *inode,
[all …]

12