]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: rename and export __btrfs_cow_block()
authorFilipe Manana <fdmanana@suse.com>
Wed, 27 Sep 2023 11:09:26 +0000 (12:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:30:03 +0000 (13:30 +0100)
commit9caa20798090dc24384e588040dd5e58545619ce
treed4e90173b1341151bd615320a7019906a41168da
parenteba25e21dce7ec70e2b3f121b2f3a25a4ec43eca
btrfs: rename and export __btrfs_cow_block()

[ Upstream commit 95f93bc4cbcac6121a5ee85cd5019ee8e7447e0b ]

Rename and export __btrfs_cow_block() as btrfs_force_cow_block(). This is
to allow to move defrag specific code out of ctree.c and into defrag.c in
one of the next patches.

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: 44f52bbe96df ("btrfs: fix use-after-free when COWing tree bock and tracing is enabled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/ctree.c
fs/btrfs/ctree.h