]> www.infradead.org Git - users/dwmw2/linux.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)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:18 +0000 (14:34 +0100)
commit8511074c42b6255e03eceb09396338572572f1c7
tree3e8dc688abbaf8fc3f90f9e7b1ff7e657b5a42de
parent70958a949d852cbecc3d46127bf0b24786df0130
btrfs: remove unused btrfs_folio_start_writer_lock()

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>
fs/btrfs/subpage.c
fs/btrfs/subpage.h