Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Kill dead code extent_save()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

-18
-18
fs/bcachefs/extents.h
··· 737 737 k->size = new_size; 738 738 } 739 739 740 - /* 741 - * In extent_sort_fix_overlapping(), insert_fixup_extent(), 742 - * extent_merge_inline() - we're modifying keys in place that are packed. To do 743 - * that we have to unpack the key, modify the unpacked key - then this 744 - * copies/repacks the unpacked to the original as necessary. 745 - */ 746 - static inline void extent_save(struct btree *b, struct bkey_packed *dst, 747 - struct bkey *src) 748 - { 749 - struct bkey_format *f = &b->format; 750 - struct bkey_i *dst_unpacked; 751 - 752 - if ((dst_unpacked = packed_to_bkey(dst))) 753 - dst_unpacked->k = *src; 754 - else 755 - BUG_ON(!bch2_bkey_pack_key(dst, src, f)); 756 - } 757 - 758 740 #endif /* _BCACHEFS_EXTENTS_H */