Lines Matching refs:eb_rewin
915 struct extent_buffer *eb_rewin; in btrfs_tree_mod_log_rewind() local
930 eb_rewin = alloc_dummy_extent_buffer(fs_info, eb->start); in btrfs_tree_mod_log_rewind()
931 if (!eb_rewin) { in btrfs_tree_mod_log_rewind()
936 btrfs_set_header_bytenr(eb_rewin, eb->start); in btrfs_tree_mod_log_rewind()
937 btrfs_set_header_backref_rev(eb_rewin, in btrfs_tree_mod_log_rewind()
939 btrfs_set_header_owner(eb_rewin, btrfs_header_owner(eb)); in btrfs_tree_mod_log_rewind()
940 btrfs_set_header_level(eb_rewin, btrfs_header_level(eb)); in btrfs_tree_mod_log_rewind()
942 eb_rewin = btrfs_clone_extent_buffer(eb); in btrfs_tree_mod_log_rewind()
943 if (!eb_rewin) { in btrfs_tree_mod_log_rewind()
953 btrfs_set_buffer_lockdep_class(btrfs_header_owner(eb_rewin), in btrfs_tree_mod_log_rewind()
954 eb_rewin, btrfs_header_level(eb_rewin)); in btrfs_tree_mod_log_rewind()
955 btrfs_tree_read_lock(eb_rewin); in btrfs_tree_mod_log_rewind()
956 tree_mod_log_rewind(fs_info, eb_rewin, time_seq, tm); in btrfs_tree_mod_log_rewind()
957 WARN_ON(btrfs_header_nritems(eb_rewin) > in btrfs_tree_mod_log_rewind()
960 return eb_rewin; in btrfs_tree_mod_log_rewind()