Home
last modified time | relevance | path

Searched refs:extent_buffer (Results 1 – 25 of 49) sorted by relevance

12

/linux-4.19.296/fs/btrfs/
Dlocking.h14 void btrfs_tree_lock(struct extent_buffer *eb);
15 void btrfs_tree_unlock(struct extent_buffer *eb);
17 void btrfs_tree_read_lock(struct extent_buffer *eb);
18 void btrfs_tree_read_unlock(struct extent_buffer *eb);
19 void btrfs_tree_read_unlock_blocking(struct extent_buffer *eb);
20 void btrfs_set_lock_blocking_rw(struct extent_buffer *eb, int rw);
21 void btrfs_clear_lock_blocking_rw(struct extent_buffer *eb, int rw);
22 void btrfs_assert_tree_locked(struct extent_buffer *eb);
23 int btrfs_try_tree_read_lock(struct extent_buffer *eb);
24 int btrfs_try_tree_write_lock(struct extent_buffer *eb);
[all …]
Dextent_io.h154 struct extent_buffer { struct
411 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,
413 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
415 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
417 struct extent_buffer *btrfs_clone_extent_buffer(struct extent_buffer *src);
418 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info,
420 void free_extent_buffer(struct extent_buffer *eb);
421 void free_extent_buffer_stale(struct extent_buffer *eb);
426 struct extent_buffer *eb, int wait,
428 void wait_on_extent_buffer_writeback(struct extent_buffer *eb);
[all …]
Ddisk-io.h43 struct extent_buffer *eb, int level,
45 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
50 int mirror_num, struct extent_buffer **eb);
51 struct extent_buffer *btrfs_find_create_tree_block(
54 void clean_tree_block(struct btrfs_fs_info *fs_info, struct extent_buffer *buf);
114 void btrfs_mark_buffer_dirty(struct extent_buffer *buf);
115 int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid,
117 int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid, int level,
129 int btrfs_write_tree_block(struct extent_buffer *buf);
130 void btrfs_wait_tree_block_writeback(struct extent_buffer *buf);
[all …]
Dlocking.c15 static void btrfs_assert_tree_read_locked(struct extent_buffer *eb);
22 void btrfs_set_lock_blocking_rw(struct extent_buffer *eb, int rw) in btrfs_set_lock_blocking_rw()
53 void btrfs_clear_lock_blocking_rw(struct extent_buffer *eb, int rw) in btrfs_clear_lock_blocking_rw()
86 void btrfs_tree_read_lock(struct extent_buffer *eb) in btrfs_tree_read_lock()
121 int btrfs_tree_read_lock_atomic(struct extent_buffer *eb) in btrfs_tree_read_lock_atomic()
140 int btrfs_try_tree_read_lock(struct extent_buffer *eb) in btrfs_try_tree_read_lock()
161 int btrfs_try_tree_write_lock(struct extent_buffer *eb) in btrfs_try_tree_write_lock()
182 void btrfs_tree_read_unlock(struct extent_buffer *eb) in btrfs_tree_read_unlock()
204 void btrfs_tree_read_unlock_blocking(struct extent_buffer *eb) in btrfs_tree_read_unlock_blocking()
228 void btrfs_tree_lock(struct extent_buffer *eb) in btrfs_tree_lock()
[all …]
Dtree-checker.h18 struct extent_buffer *leaf);
25 struct extent_buffer *leaf);
26 int btrfs_check_node(struct btrfs_fs_info *fs_info, struct extent_buffer *node);
29 struct extent_buffer *leaf,
Dctree.c23 struct extent_buffer *dst,
24 struct extent_buffer *src, int empty);
27 struct extent_buffer *dst_buf,
28 struct extent_buffer *src_buf);
64 struct extent_buffer *held, int held_rw) in btrfs_clear_path_blocking()
133 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node()
135 struct extent_buffer *eb; in btrfs_root_node()
161 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root) in btrfs_lock_root_node()
163 struct extent_buffer *eb; in btrfs_lock_root_node()
180 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root) in btrfs_read_lock_root_node()
[all …]
Dctree.h328 struct extent_buffer *nodes[BTRFS_MAX_LEVEL];
1164 struct extent_buffer *node;
1166 struct extent_buffer *commit_root;
1478 const struct extent_buffer *eb;
1512 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \
1515 void btrfs_set_token_##bits(struct extent_buffer *eb, const void *ptr, \
1518 static inline u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
1524 static inline void btrfs_set_##bits(struct extent_buffer *eb, void *ptr,\
1536 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \
1542 static inline void btrfs_set_##name(struct extent_buffer *eb, type *s, \
[all …]
Dtree-checker.c47 const struct extent_buffer *eb, int slot, in generic_err()
72 const struct extent_buffer *eb, int slot, in file_extent_err()
108 struct extent_buffer *leaf, in check_extent_data_item()
192 struct extent_buffer *leaf, struct btrfs_key *key, in check_csum_item()
226 const struct extent_buffer *eb, int slot, in dir_item_err()
248 struct extent_buffer *leaf, in check_dir_item()
360 const struct extent_buffer *eb, int slot, in block_group_err()
382 struct extent_buffer *leaf, in check_block_group_item()
454 const struct extent_buffer *leaf, in chunk_err()
503 struct extent_buffer *leaf, in btrfs_check_chunk_valid()
[all …]
Dprint-tree.h9 void btrfs_print_leaf(struct extent_buffer *l);
10 void btrfs_print_tree(struct extent_buffer *c, bool follow);
Dprint-tree.c10 static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk()
23 static void print_dev_item(struct extent_buffer *eb, in print_dev_item()
31 static void print_extent_data_ref(struct extent_buffer *eb, in print_extent_data_ref()
41 static void print_extent_item(struct extent_buffer *eb, int slot, int type) in print_extent_item()
130 static void print_uuid_item(struct extent_buffer *l, unsigned long offset, in print_uuid_item()
153 static void print_eb_refs_lock(struct extent_buffer *eb) in print_eb_refs_lock()
168 void btrfs_print_leaf(struct extent_buffer *l) in btrfs_print_leaf()
326 void btrfs_print_tree(struct extent_buffer *c, bool follow) in btrfs_print_tree()
359 struct extent_buffer *next; in btrfs_print_tree()
Ddir-item.c31 struct extent_buffer *leaf; in insert_with_overflow()
66 struct extent_buffer *leaf; in btrfs_insert_xattr_item()
117 struct extent_buffer *leaf; in btrfs_insert_dir_item()
211 struct extent_buffer *leaf; in btrfs_check_dir_item_collision()
300 struct extent_buffer *leaf; in btrfs_search_dir_index_item()
380 struct extent_buffer *leaf; in btrfs_match_dir_item_name()
413 struct extent_buffer *leaf; in btrfs_delete_one_dir_name()
Droot-tree.c20 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item()
69 struct extent_buffer *l; in btrfs_find_root()
108 struct extent_buffer *node) in btrfs_set_root_node()
124 struct extent_buffer *l; in btrfs_update_root()
210 struct extent_buffer *leaf; in btrfs_find_orphan_roots()
353 struct extent_buffer *leaf; in btrfs_del_root_ref()
427 struct extent_buffer *leaf; in btrfs_add_root_ref()
Dstruct-funcs.c39 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \
78 void btrfs_set_token_##bits(struct extent_buffer *eb, \
123 void btrfs_node_key(const struct extent_buffer *eb, in btrfs_node_key()
Dextent_io.c66 struct extent_buffer *eb; in btrfs_leak_debug_check()
79 eb = list_entry(buffers.next, struct extent_buffer, leak_list); in btrfs_leak_debug_check()
206 sizeof(struct extent_buffer), 0, in extent_io_init()
2100 struct extent_buffer *eb, int mirror_num) in repair_eb_io_failure()
2848 static void attach_extent_buffer_page(struct extent_buffer *eb, in attach_extent_buffer_page()
3551 void wait_on_extent_buffer_writeback(struct extent_buffer *eb) in wait_on_extent_buffer_writeback()
3557 static void end_extent_buffer_writeback(struct extent_buffer *eb) in end_extent_buffer_writeback()
3572 lock_extent_buffer_for_io(struct extent_buffer *eb, in lock_extent_buffer_for_io()
3674 struct extent_buffer *eb = (struct extent_buffer *)page->private; in set_btree_ioerr()
3736 struct extent_buffer *eb; in end_bio_extent_buffer_writepage()
[all …]
Dbackref.h26 int tree_backref_for_extent(unsigned long *ptr, struct extent_buffer *eb,
48 struct extent_buffer *eb_in, u64 parent,
Dinode-item.c11 int btrfs_find_name_in_backref(struct extent_buffer *leaf, int slot, in btrfs_find_name_in_backref()
40 int btrfs_find_name_in_ext_backref(struct extent_buffer *leaf, int slot, in btrfs_find_name_in_ext_backref()
117 struct extent_buffer *leaf; in btrfs_del_inode_extref()
189 struct extent_buffer *leaf; in btrfs_del_inode_ref()
270 struct extent_buffer *leaf; in btrfs_insert_inode_extref()
419 struct extent_buffer *leaf; in btrfs_lookup_inode()
Duuid-tree.c27 struct extent_buffer *eb; in btrfs_uuid_tree_lookup()
90 struct extent_buffer *eb; in btrfs_uuid_tree_add()
155 struct extent_buffer *eb; in btrfs_uuid_tree_remove()
257 struct extent_buffer *leaf; in btrfs_uuid_tree_iterate()
Dbackref.c27 const struct extent_buffer *eb, in check_extent_in_eb()
74 static int find_extent_in_eb(const struct extent_buffer *eb, in find_extent_in_eb()
418 struct extent_buffer *eb; in add_all_parents()
510 struct extent_buffer *eb; in resolve_indirect_ref()
733 struct extent_buffer *eb; in add_missing_keys()
908 struct extent_buffer *leaf; in add_inline_refs()
1033 struct extent_buffer *leaf; in add_keyed_refs()
1241 struct extent_buffer *leaf;
1314 struct extent_buffer *eb;
1569 const struct extent_buffer *leaf;
[all …]
Dqgroup.h225 struct extent_buffer *eb);
237 struct extent_buffer *root_eb,
Dtree-log.c279 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb,
287 struct extent_buffer *eb, in process_one_buffer()
335 struct extent_buffer *eb, int slot, in overwrite_item()
486 struct extent_buffer *dst_eb = path->nodes[0]; in overwrite_item()
575 struct extent_buffer *eb, int slot, in replay_one_extent()
632 struct extent_buffer *leaf; in replay_one_extent()
846 struct extent_buffer *leaf; in drop_one_dir_item()
1007 struct extent_buffer *leaf; in __add_inode_ref()
1179 static int extref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr, in extref_get_fields()
1203 static int ref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr, in ref_get_fields()
[all …]
Ddisk-io.c184 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, in btrfs_set_buffer_lockdep_class()
267 struct extent_buffer *buf, in csum_tree_block()
324 struct extent_buffer *eb, u64 parent_transid, in verify_parent_transid()
412 struct extent_buffer *eb, int level, in btrfs_verify_level_key()
480 struct extent_buffer *eb, in btree_read_extent_buffer_pages()
540 struct extent_buffer *eb; in csum_dirty_buffer()
542 eb = (struct extent_buffer *)page->private; in csum_dirty_buffer()
563 struct extent_buffer *eb) in check_tree_block_fsid()
586 struct extent_buffer *eb; in btree_readpage_end_io_hook()
595 eb = (struct extent_buffer *)page->private; in btree_readpage_end_io_hook()
[all …]
Dfile-item.c39 struct extent_buffer *leaf; in btrfs_insert_file_extent()
85 struct extent_buffer *leaf; in btrfs_lookup_csum()
309 struct extent_buffer *leaf; in btrfs_lookup_csums_range()
535 struct extent_buffer *leaf; in truncate_one_csum()
588 struct extent_buffer *leaf; in btrfs_del_csums()
735 struct extent_buffer *leaf = NULL; in btrfs_csum_file_blocks()
933 struct extent_buffer *leaf = path->nodes[0]; in btrfs_extent_item_to_extent_map()
Dxattr.c29 struct extent_buffer *leaf; in btrfs_getxattr()
168 struct extent_buffer *leaf = path->nodes[0]; in do_setxattr()
283 struct extent_buffer *leaf; in btrfs_listxattr()
Drelocation.c51 struct extent_buffer *eb;
590 int find_inline_backref(struct extent_buffer *leaf, int slot, in find_inline_backref()
653 struct extent_buffer *eb; in build_backref_tree()
1342 struct extent_buffer *eb; in create_reloc_root()
1559 struct extent_buffer *leaf; in get_new_location()
1605 struct extent_buffer *leaf) in replace_file_extents()
1718 int memcmp_node_keys(struct extent_buffer *eb, int slot, in memcmp_node_keys()
1744 struct extent_buffer *eb; in replace_path()
1745 struct extent_buffer *parent; in replace_path()
1942 struct extent_buffer *eb; in walk_up_reloc_tree()
[all …]
/linux-4.19.296/fs/btrfs/tests/
Dextent-io-tests.c264 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb, in check_eb_bitmap()
289 static int __test_eb_bitmaps(unsigned long *bitmap, struct extent_buffer *eb, in __test_eb_bitmaps()
377 struct extent_buffer *eb; in test_eb_bitmaps()

12