]> 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:25:04 +0000 (13:25 +0100)
commitbf267f2f81bc88bc1ef2dc574768e411d0b5bd27
tree5a270558f2e4053d35eeecb74a82c01dc09e8108
parent1817e3e849f6578c479e011fa898dcdc6e3dff61
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