Home
last modified time | relevance | path

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

/Linux-v4.19/fs/btrfs/
Dbtrfs_inode.h35 struct btrfs_inode { struct
201 static inline struct btrfs_inode *BTRFS_I(const struct inode *inode) in BTRFS_I() argument
203 return container_of(inode, struct btrfs_inode, vfs_inode); in BTRFS_I()
225 static inline u64 btrfs_ino(const struct btrfs_inode *inode) in btrfs_ino()
238 static inline void btrfs_i_size_write(struct btrfs_inode *inode, u64 size) in btrfs_i_size_write()
244 static inline bool btrfs_is_free_space_inode(struct btrfs_inode *inode) in btrfs_is_free_space_inode()
256 static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode, in btrfs_mod_outstanding_extents()
267 static inline int btrfs_inode_in_log(struct btrfs_inode *inode, u64 generation) in btrfs_inode_in_log()
324 static inline void btrfs_inode_block_unlocked_dio(struct btrfs_inode *inode) in btrfs_inode_block_unlocked_dio()
330 static inline void btrfs_inode_resume_unlocked_dio(struct btrfs_inode *inode) in btrfs_inode_resume_unlocked_dio()
[all …]
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);
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.c65 struct btrfs_inode *btrfs_inode) in btrfs_get_delayed_node() argument
67 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_delayed_node()
68 u64 ino = btrfs_ino(btrfs_inode); in btrfs_get_delayed_node()
71 node = READ_ONCE(btrfs_inode->delayed_node); in btrfs_get_delayed_node()
81 if (btrfs_inode->delayed_node) { in btrfs_get_delayed_node()
83 BUG_ON(btrfs_inode->delayed_node != node); in btrfs_get_delayed_node()
106 btrfs_inode->delayed_node = node; in btrfs_get_delayed_node()
121 struct btrfs_inode *btrfs_inode) in btrfs_get_or_create_delayed_node() argument
124 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_or_create_delayed_node()
125 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()
756 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,
832 struct btrfs_inode *dir, in drop_one_dir_item()
982 struct btrfs_inode *dir, in __add_inode_ref()
983 struct btrfs_inode *inode, in __add_inode_ref()
1210 struct btrfs_inode *inode, in unlink_old_inode_refs()
1519 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_extrefs()
1563 struct btrfs_inode *inode, struct btrfs_path *path) in count_inode_refs()
3266 struct btrfs_inode *dir, u64 index) in btrfs_del_dir_entries_in_log()
3374 struct btrfs_inode *inode, u64 dirid) in btrfs_del_inode_ref_in_log()
3442 struct btrfs_root *root, struct btrfs_inode *inode, in log_dir_items()
[all …]
Dextent_io.h84 struct btrfs_inode;
258 typedef struct extent_map *(get_extent_t)(struct btrfs_inode *inode,
502 struct btrfs_inode;
535 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start,
Dctree.h2733 int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes);
2749 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes,
2752 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes);
2753 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes,
3026 int name_len, struct btrfs_inode *dir,
3125 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode,
3132 struct extent_map *btrfs_get_extent_fiemap(struct btrfs_inode *inode,
3140 struct btrfs_inode *inode);
3142 int btrfs_set_inode_index(struct btrfs_inode *dir, u64 *index);
3145 struct btrfs_inode *dir, struct btrfs_inode *inode,
[all …]
Dordered-data.h178 struct btrfs_inode *inode,
Ddisk-io.h141 struct extent_map *btree_get_extent(struct btrfs_inode *inode,
Dinode.c411 static inline void inode_should_defrag(struct btrfs_inode *inode, in inode_should_defrag()
1731 struct btrfs_inode *inode) in __btrfs_del_delalloc_inode()
1751 struct btrfs_inode *inode) in btrfs_del_delalloc_inode()
1819 struct btrfs_inode *inode = BTRFS_I((struct inode *)private_data); in btrfs_clear_bit_hook()
3261 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_add_delayed_iput()
3277 struct btrfs_inode *inode; in btrfs_run_delayed_iputs()
3280 struct btrfs_inode, delayed_iput); in btrfs_run_delayed_iputs()
3294 struct btrfs_inode *inode) in btrfs_orphan_add()
3312 struct btrfs_inode *inode) in btrfs_orphan_del()
3890 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()
578 void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache()
1130 struct btrfs_inode *inode, u64 start, u64 end) in btrfs_mark_extent_written()
1463 lock_and_cleanup_extent_if_need(struct btrfs_inode *inode, struct page **pages, in lock_and_cleanup_extent_if_need()
1522 static noinline int check_can_nocow(struct btrfs_inode *inode, loff_t pos, in check_can_nocow()
2194 static int hole_mergeable(struct btrfs_inode *inode, struct extent_buffer *leaf, in hole_mergeable()
2224 struct btrfs_inode *inode, in fill_holes()
Ddisk-io.c205 struct extent_map *btree_get_extent(struct btrfs_inode *inode, in btree_get_extent()
844 static int check_async_write(struct btrfs_inode *bi) in check_async_write()
4264 struct btrfs_inode *btrfs_inode; in btrfs_destroy_delalloc_inodes() local
4274 btrfs_inode = list_first_entry(&splice, struct btrfs_inode, in btrfs_destroy_delalloc_inodes()
4276 __btrfs_del_delalloc_inode(root, btrfs_inode); in btrfs_destroy_delalloc_inodes()
4283 inode = igrab(&btrfs_inode->vfs_inode); in btrfs_destroy_delalloc_inodes()
Ddir-item.c110 struct btrfs_inode *dir, struct btrfs_key *location, in btrfs_insert_dir_item()
Dextent_io.c2133 void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start, u64 end) in btrfs_free_io_failure_record()
4227 struct btrfs_inode *btrfs_inode = BTRFS_I(page->mapping->host); in try_release_extent_mapping() local
4228 struct extent_io_tree *tree = &btrfs_inode->io_tree; in try_release_extent_mapping()
4229 struct extent_map_tree *map = &btrfs_inode->extent_tree; in try_release_extent_mapping()
4253 &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()
3683 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.c919 void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, in btrfs_extent_item_to_extent_map()
Dcompression.c56 static int check_compressed_csum(struct btrfs_inode *inode, in check_compressed_csum()
Dextent-tree.c4108 int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes) in btrfs_alloc_data_chunk_ondemand()
5607 static int btrfs_inode_rsv_refill(struct btrfs_inode *inode, in btrfs_inode_rsv_refill()
5656 static void btrfs_inode_rsv_release(struct btrfs_inode *inode, bool qgroup_free) in btrfs_inode_rsv_release()
5853 struct btrfs_inode *inode) in btrfs_calculate_inode_block_rsv_size()
5884 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_reserve_metadata()
5956 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata()
5985 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_extents()
/Linux-v4.19/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,