Home
last modified time | relevance | path

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

/linux-4.19.296/fs/btrfs/
Dbtrfs_inode.h36 struct btrfs_inode { struct
208 static inline struct btrfs_inode *BTRFS_I(const struct inode *inode) in BTRFS_I() argument
210 return container_of(inode, struct btrfs_inode, vfs_inode); in BTRFS_I()
232 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
245 static inline void btrfs_i_size_write(struct btrfs_inode *inode, u64 size) in btrfs_i_size_write()
251 static inline bool btrfs_is_free_space_inode(struct btrfs_inode *inode) in btrfs_is_free_space_inode()
263 static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode, in btrfs_mod_outstanding_extents()
274 static inline int btrfs_inode_in_log(struct btrfs_inode *inode, u64 generation) in btrfs_inode_in_log()
331 static inline void btrfs_inode_block_unlocked_dio(struct btrfs_inode *inode) in btrfs_inode_block_unlocked_dio()
337 static inline void btrfs_inode_resume_unlocked_dio(struct btrfs_inode *inode) in btrfs_inode_resume_unlocked_dio()
[all …]
Dtree-log.h62 struct btrfs_inode *dir, u64 index);
66 struct btrfs_inode *inode, u64 dirid);
70 struct btrfs_inode *dir, struct btrfs_inode *inode,
73 struct btrfs_inode *dir);
82 struct btrfs_inode *inode, struct btrfs_inode *old_dir,
Ddelayed-inode.h90 struct btrfs_inode *dir,
95 struct btrfs_inode *dir, u64 index);
97 int btrfs_inode_delayed_dir_index_count(struct btrfs_inode *inode);
105 struct btrfs_inode *inode);
107 void btrfs_remove_delayed_node(struct btrfs_inode *inode);
108 void btrfs_kill_delayed_inode_items(struct btrfs_inode *inode);
109 int btrfs_commit_inode_delayed_inode(struct btrfs_inode *inode);
115 int btrfs_delayed_delete_inode_ref(struct btrfs_inode *inode);
Ddelayed-inode.c66 struct btrfs_inode *btrfs_inode) in btrfs_get_delayed_node() argument
68 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_delayed_node()
69 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_delayed_node()
72 node = READ_ONCE(btrfs_inode->delayed_node); in btrfs_get_delayed_node()
82 if (btrfs_inode->delayed_node) { in btrfs_get_delayed_node()
84 BUG_ON(btrfs_inode->delayed_node != node); in btrfs_get_delayed_node()
107 btrfs_inode->delayed_node = node; in btrfs_get_delayed_node()
122 struct btrfs_inode *btrfs_inode) in btrfs_get_or_create_delayed_node() argument
125 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_or_create_delayed_node()
126 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_or_create_delayed_node()
[all …]
Dordered-data.c460 struct btrfs_inode *btrfs_inode = BTRFS_I(inode); in btrfs_remove_ordered_extent() local
461 struct btrfs_root *root = btrfs_inode->root; in btrfs_remove_ordered_extent()
466 spin_lock(&btrfs_inode->lock); in btrfs_remove_ordered_extent()
467 btrfs_mod_outstanding_extents(btrfs_inode, -1); in btrfs_remove_ordered_extent()
468 spin_unlock(&btrfs_inode->lock); in btrfs_remove_ordered_extent()
470 btrfs_delalloc_release_metadata(btrfs_inode, entry->len, false); in btrfs_remove_ordered_extent()
472 tree = &btrfs_inode->ordered_tree; in btrfs_remove_ordered_extent()
761 struct btrfs_inode *inode, u64 file_offset, u64 len) in btrfs_lookup_ordered_range()
Dtree-log.c89 struct btrfs_root *root, struct btrfs_inode *inode,
840 struct btrfs_inode *dir, in drop_one_dir_item()
998 struct btrfs_inode *dir, in __add_inode_ref()
999 struct btrfs_inode *inode, in __add_inode_ref()
1233 struct btrfs_inode *inode, in unlink_old_inode_refs()
1563 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_extrefs()
1607 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_refs()
3339 struct btrfs_inode *inode) in inode_logged()
3376 struct btrfs_inode *dir, u64 index) in btrfs_del_dir_entries_in_log()
3486 struct btrfs_inode *inode, u64 dirid) in btrfs_del_inode_ref_in_log()
[all …]
Dextent_io.h84 struct btrfs_inode;
253 typedef struct extent_map *(get_extent_t)(struct btrfs_inode *inode,
497 struct btrfs_inode;
530 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start,
Dctree.h2747 int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes);
2763 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes);
2765 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes);
2766 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes,
3039 int name_len, struct btrfs_inode *dir,
3138 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode,
3145 struct extent_map *btrfs_get_extent_fiemap(struct btrfs_inode *inode,
3153 struct btrfs_inode *inode);
3155 int btrfs_set_inode_index(struct btrfs_inode *dir, u64 *index);
3158 struct btrfs_inode *dir, struct btrfs_inode *inode,
[all …]
Dordered-data.h178 struct btrfs_inode *inode,
Ddisk-io.h144 struct extent_map *btree_get_extent(struct btrfs_inode *inode,
Dinode.c443 static inline void inode_should_defrag(struct btrfs_inode *inode, in inode_should_defrag()
1790 struct btrfs_inode *inode) in __btrfs_del_delalloc_inode()
1810 struct btrfs_inode *inode) in btrfs_del_delalloc_inode()
1878 struct btrfs_inode *inode = BTRFS_I((struct inode *)private_data); in btrfs_clear_bit_hook()
3341 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_add_delayed_iput()
3357 struct btrfs_inode *inode; in btrfs_run_delayed_iputs()
3360 struct btrfs_inode, delayed_iput); in btrfs_run_delayed_iputs()
3374 struct btrfs_inode *inode) in btrfs_orphan_add()
3392 struct btrfs_inode *inode) in btrfs_orphan_del()
3990 struct btrfs_inode *dir, in __btrfs_unlink_inode()
[all …]
Dfile.c80 static int __btrfs_add_inode_defrag(struct btrfs_inode *inode, in __btrfs_add_inode_defrag()
133 struct btrfs_inode *inode) in btrfs_add_inode_defrag()
182 static void btrfs_requeue_inode_defrag(struct btrfs_inode *inode, in btrfs_requeue_inode_defrag()
465 static int btrfs_find_new_delalloc_bytes(struct btrfs_inode *inode, in btrfs_find_new_delalloc_bytes()
586 void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache()
1138 struct btrfs_inode *inode, u64 start, u64 end) in btrfs_mark_extent_written()
1471 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct page **pages, in lock_and_cleanup_extent_if_need()
1539 static noinline int check_can_nocow(struct btrfs_inode *inode, loff_t pos, in check_can_nocow()
2280 static int hole_mergeable(struct btrfs_inode *inode, struct extent_buffer *leaf, in hole_mergeable()
2310 struct btrfs_inode *inode, in fill_holes()
Ddir-item.c110 struct btrfs_inode *dir, struct btrfs_key *location, in btrfs_insert_dir_item()
Ddisk-io.c206 struct extent_map *btree_get_extent(struct btrfs_inode *inode, in btree_get_extent()
846 static int check_async_write(struct btrfs_inode *bi) in check_async_write()
4330 struct btrfs_inode *btrfs_inode; in btrfs_destroy_delalloc_inodes() local
4340 btrfs_inode = list_first_entry(&splice, struct btrfs_inode, in btrfs_destroy_delalloc_inodes()
4342 __btrfs_del_delalloc_inode(root, btrfs_inode); in btrfs_destroy_delalloc_inodes()
4349 inode = igrab(&btrfs_inode->vfs_inode); in btrfs_destroy_delalloc_inodes()
Dextent_io.c2188 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start, u64 end) in btrfs_free_io_failure_record()
4355 struct btrfs_inode *btrfs_inode = BTRFS_I(page->mapping->host); in try_release_extent_mapping() local
4356 struct extent_io_tree *tree = &btrfs_inode->io_tree; in try_release_extent_mapping()
4357 struct extent_map_tree *map = &btrfs_inode->extent_tree; in try_release_extent_mapping()
4381 &btrfs_inode->runtime_flags); in try_release_extent_mapping()
Dioctl.c138 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_sync_inode_flags_to_i_flags()
159 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_getflags()
187 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_setflags()
374 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_fsgetxattr()
389 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_fssetxattr()
3744 static void clone_update_extent_map(struct btrfs_inode *inode, in clone_update_extent_map()
Drelocation.c1495 struct btrfs_inode *entry; in find_next_inode()
1504 entry = rb_entry(node, struct btrfs_inode, rb_node); in find_next_inode()
1515 entry = rb_entry(prev, struct btrfs_inode, rb_node); in find_next_inode()
1524 entry = rb_entry(node, struct btrfs_inode, rb_node); in find_next_inode()
Dfile-item.c925 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, in btrfs_extent_item_to_extent_map()
Dcompression.c72 static int check_compressed_csum(struct btrfs_inode *inode, in check_compressed_csum()
Dextent-tree.c4115 int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes) in btrfs_alloc_data_chunk_ondemand()
5613 static int btrfs_inode_rsv_refill(struct btrfs_inode *inode, in btrfs_inode_rsv_refill()
5662 static void btrfs_inode_rsv_release(struct btrfs_inode *inode, bool qgroup_free) in btrfs_inode_rsv_release()
5859 struct btrfs_inode *inode) in btrfs_calculate_inode_block_rsv_size()
5890 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_reserve_metadata()
5962 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata()
5991 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents()
/linux-4.19.296/include/trace/events/
Dbtrfs.h14 struct btrfs_inode;
209 TP_PROTO(const struct btrfs_root *root, const struct btrfs_inode *inode,
297 TP_PROTO(struct btrfs_inode *bi, struct extent_buffer *l,
352 TP_PROTO(struct btrfs_inode *bi, struct extent_buffer *l,
393 TP_PROTO(struct btrfs_inode *bi, struct extent_buffer *l,
402 TP_PROTO(struct btrfs_inode *bi, struct extent_buffer *l,
411 TP_PROTO(struct btrfs_inode *bi, struct extent_buffer *l,
420 TP_PROTO(struct btrfs_inode *bi, struct extent_buffer *l,