]> 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:28:48 +0000 (13:28 +0100)
commitd4a7270b37d04579c2f4c5cc9af304e2f6090cac
tree97ecf7f9ee23923c85e94ebe0e8306251a7be43c
parentad0677c37c14fa28913daea92d139644d7acf04e
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