]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: remove unused btrfs_folio_start_writer_lock()
authorQu Wenruo <wqu@suse.com>
Tue, 8 Oct 2024 23:07:04 +0000 (09:37 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:13 +0000 (04:30 -0800)
commit93c985ddccc3a21285b83055889d36c861900ea0
tree8b5d4820a0c2a4644d5b6f4161430f5cb1e5f7f2
parent9f9e6f07cd572fa34f92cba84d1631d96421dcf8
btrfs: remove unused btrfs_folio_start_writer_lock()

[ Upstream commit 8511074c42b6255e03eceb09396338572572f1c7 ]

This function is not really suitable to lock a folio, as it lacks the
proper mapping checks, thus the locked folio may not even belong to
btrfs.

And due to the above reason, the last user inside lock_delalloc_folios()
is already removed, and we can remove this function.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 8bf334beb349 ("btrfs: fix double accounting race when extent_writepage_io() failed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/subpage.c
fs/btrfs/subpage.h