]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: use on stack backref iterator in build_backref_tree()
authorDavid Sterba <dsterba@suse.com>
Thu, 30 Apr 2026 15:25:01 +0000 (17:25 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jun 2026 13:53:32 +0000 (15:53 +0200)
commitf84f833a72c73f33180d98258e35df3272decadc
treeba1f9c498848c94e728fbda8fe4b26caecc111be
parentbe516b2d3c438a0c6dc934e797419fefae24a86e
btrfs: use on stack backref iterator in build_backref_tree()

The iterator is used only once and within build_backref_tree() so we can
avoid one allocation and place it on stack.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/backref.h
fs/btrfs/relocation.c