]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: send: add and use helper to rename current inode when processing refs
authorFilipe Manana <fdmanana@suse.com>
Tue, 19 Aug 2025 02:40:16 +0000 (22:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:41 +0000 (16:28 +0200)
commitffc19fe2a7ade9c3bf84959bb91a49513be86792
treed7976607deb6b40130a3de805aadcd61da636605
parentbfed58ed10f12ad68869305a6a08d099b3eeaf44
btrfs: send: add and use helper to rename current inode when processing refs

[ Upstream commit ec666c84deba56f714505b53556a97565f72db86 ]

Extract the logic to rename the current inode at process_recorded_refs()
into a helper function and use it, therefore removing duplicated logic
and making it easier for an upcoming patch by avoiding yet more duplicated
logic.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 005b0a0c24e1 ("btrfs: send: use fallocate for hole punching with send stream v2")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/send.c