Lines Matching refs:extent_buffer
41 static inline void btrfs_leak_debug_add_eb(struct extent_buffer *eb) in btrfs_leak_debug_add_eb()
51 static inline void btrfs_leak_debug_del_eb(struct extent_buffer *eb) in btrfs_leak_debug_del_eb()
63 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check()
77 struct extent_buffer, leak_list); in btrfs_extent_buffer_leak_debug_check()
156 sizeof(struct extent_buffer), 0, 0, in extent_buffer_init_cachep()
653 static int alloc_eb_folio_array(struct extent_buffer *eb, bool nofail) in alloc_eb_folio_array()
826 static int attach_extent_buffer_folio(struct extent_buffer *eb, in attach_extent_buffer_folio()
1484 void wait_on_extent_buffer_writeback(struct extent_buffer *eb) in wait_on_extent_buffer_writeback()
1497 static noinline_for_stack bool lock_extent_buffer_for_io(struct extent_buffer *eb, in lock_extent_buffer_for_io()
1533 static void set_btree_ioerr(struct extent_buffer *eb) in set_btree_ioerr()
1610 static struct extent_buffer *find_extent_buffer_nolock( in find_extent_buffer_nolock()
1613 struct extent_buffer *eb; in find_extent_buffer_nolock()
1628 struct extent_buffer *eb = bbio->private; in end_bbio_meta_write()
1653 static void prepare_eb_write(struct extent_buffer *eb) in prepare_eb_write()
1681 static noinline_for_stack void write_one_eb(struct extent_buffer *eb, in write_one_eb()
1759 struct extent_buffer *eb; in submit_eb_subpage()
1833 struct extent_buffer *eb; in submit_eb_page()
2435 static void __free_extent_buffer(struct extent_buffer *eb) in __free_extent_buffer()
2440 static int extent_buffer_under_io(const struct extent_buffer *eb) in extent_buffer_under_io()
2466 static void detach_extent_buffer_folio(const struct extent_buffer *eb, struct folio *folio) in detach_extent_buffer_folio()
2527 static void btrfs_release_extent_buffer_pages(const struct extent_buffer *eb) in btrfs_release_extent_buffer_pages()
2547 static inline void btrfs_release_extent_buffer(struct extent_buffer *eb) in btrfs_release_extent_buffer()
2554 static struct extent_buffer *
2558 struct extent_buffer *eb = NULL; in __alloc_extent_buffer()
2576 struct extent_buffer *btrfs_clone_extent_buffer(const struct extent_buffer *src) in btrfs_clone_extent_buffer()
2578 struct extent_buffer *new; in btrfs_clone_extent_buffer()
2615 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, in __alloc_dummy_extent_buffer()
2618 struct extent_buffer *eb; in __alloc_dummy_extent_buffer()
2653 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_dummy_extent_buffer()
2659 static void check_buffer_tree_ref(struct extent_buffer *eb) in check_buffer_tree_ref()
2695 static void mark_extent_buffer_accessed(struct extent_buffer *eb) in mark_extent_buffer_accessed()
2705 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, in find_extent_buffer()
2708 struct extent_buffer *eb; in find_extent_buffer()
2735 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_test_extent_buffer()
2738 struct extent_buffer *eb, *exists = NULL; in alloc_test_extent_buffer()
2776 static struct extent_buffer *grab_extent_buffer( in grab_extent_buffer()
2780 struct extent_buffer *exists; in grab_extent_buffer()
2850 static int attach_eb_folio_to_filemap(struct extent_buffer *eb, int i, in attach_eb_folio_to_filemap()
2852 struct extent_buffer **found_eb_ret) in attach_eb_folio_to_filemap()
2895 struct extent_buffer *existing_eb; in attach_eb_folio_to_filemap()
2930 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_extent_buffer()
2936 struct extent_buffer *eb; in alloc_extent_buffer()
2937 struct extent_buffer *existing_eb = NULL; in alloc_extent_buffer()
3138 struct extent_buffer *eb = in btrfs_release_extent_buffer_rcu()
3139 container_of(head, struct extent_buffer, rcu_head); in btrfs_release_extent_buffer_rcu()
3144 static int release_extent_buffer(struct extent_buffer *eb) in release_extent_buffer()
3181 void free_extent_buffer(struct extent_buffer *eb) in free_extent_buffer()
3211 void free_extent_buffer_stale(struct extent_buffer *eb) in free_extent_buffer_stale()
3237 static void clear_subpage_extent_buffer_dirty(const struct extent_buffer *eb) in clear_subpage_extent_buffer_dirty()
3253 struct extent_buffer *eb) in btrfs_clear_buffer_dirty()
3299 void set_extent_buffer_dirty(struct extent_buffer *eb) in set_extent_buffer_dirty()
3344 void clear_extent_buffer_uptodate(struct extent_buffer *eb) in clear_extent_buffer_uptodate()
3368 void set_extent_buffer_uptodate(struct extent_buffer *eb) in set_extent_buffer_uptodate()
3389 static void clear_extent_buffer_reading(struct extent_buffer *eb) in clear_extent_buffer_reading()
3398 struct extent_buffer *eb = bbio->private; in end_bbio_meta_read()
3443 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, int mirror_num, in read_extent_buffer_pages()
3513 static bool report_eb_range(const struct extent_buffer *eb, unsigned long start, in report_eb_range()
3531 static inline int check_eb_range(const struct extent_buffer *eb, in check_eb_range()
3543 void read_extent_buffer(const struct extent_buffer *eb, void *dstv, in read_extent_buffer()
3582 int read_extent_buffer_to_user_nofault(const struct extent_buffer *eb, in read_extent_buffer_to_user_nofault()
3623 int memcmp_extent_buffer(const struct extent_buffer *eb, const void *ptrv, in memcmp_extent_buffer()
3663 static void assert_eb_folio_uptodate(const struct extent_buffer *eb, int i) in assert_eb_folio_uptodate()
3692 static void __write_extent_buffer(const struct extent_buffer *eb, in __write_extent_buffer()
3736 void write_extent_buffer(const struct extent_buffer *eb, const void *srcv, in write_extent_buffer()
3742 static void memset_extent_buffer(const struct extent_buffer *eb, int c, in memset_extent_buffer()
3765 void memzero_extent_buffer(const struct extent_buffer *eb, unsigned long start, in memzero_extent_buffer()
3773 void copy_extent_buffer_full(const struct extent_buffer *dst, in copy_extent_buffer_full()
3774 const struct extent_buffer *src) in copy_extent_buffer_full()
3793 void copy_extent_buffer(const struct extent_buffer *dst, in copy_extent_buffer()
3794 const struct extent_buffer *src, in copy_extent_buffer()
3841 static inline void eb_bitmap_offset(const struct extent_buffer *eb, in eb_bitmap_offset()
3867 int extent_buffer_test_bit(const struct extent_buffer *eb, unsigned long start, in extent_buffer_test_bit()
3880 static u8 *extent_buffer_get_byte(const struct extent_buffer *eb, unsigned long bytenr) in extent_buffer_get_byte()
3897 void extent_buffer_bitmap_set(const struct extent_buffer *eb, unsigned long start, in extent_buffer_bitmap_set()
3933 void extent_buffer_bitmap_clear(const struct extent_buffer *eb, in extent_buffer_bitmap_clear()
3967 void memcpy_extent_buffer(const struct extent_buffer *dst, in memcpy_extent_buffer()
4004 void memmove_extent_buffer(const struct extent_buffer *dst, in memmove_extent_buffer()
4056 static struct extent_buffer *get_next_extent_buffer( in get_next_extent_buffer()
4059 struct extent_buffer *gang[GANG_LOOKUP_SIZE]; in get_next_extent_buffer()
4060 struct extent_buffer *found = NULL; in get_next_extent_buffer()
4101 struct extent_buffer *eb = NULL; in try_release_subpage_extent_buffer()
4165 struct extent_buffer *eb; in try_release_extent_buffer()
4229 struct extent_buffer *eb; in btrfs_readahead_tree_block()
4257 void btrfs_readahead_node_child(struct extent_buffer *node, int slot) in btrfs_readahead_node_child()