diff options
author | Qu Wenruo <wqu@suse.com> | 2024-09-02 13:57:08 +0930 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-09-10 16:51:22 +0200 |
commit | 49a9907368a4633fe19c477159da7a3199c808ee (patch) | |
tree | 7db746e8123a08a6452bd94d7f9ae7e0000573ee /fs/btrfs/subpage.h | |
parent | 68f32b9c98522b9689e82627abeb5c10b3501915 (diff) |
btrfs: merge btrfs_folio_unlock_writer() into btrfs_folio_end_writer_lock()
The function btrfs_folio_unlock_writer() is already calling
btrfs_folio_end_writer_lock() to do the heavy lifting work, the only
missing 0 writer check.
Thus there is no need to keep two different functions, move the 0 writer
check into btrfs_folio_end_writer_lock(), and remove
btrfs_folio_unlock_writer().
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/subpage.h')
-rw-r--r-- | fs/btrfs/subpage.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/subpage.h b/fs/btrfs/subpage.h index f90e0c4f4cab..f805261e0999 100644 --- a/fs/btrfs/subpage.h +++ b/fs/btrfs/subpage.h @@ -155,8 +155,6 @@ bool btrfs_subpage_clear_and_test_dirty(const struct btrfs_fs_info *fs_info, void btrfs_folio_assert_not_dirty(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len); -void btrfs_folio_unlock_writer(struct btrfs_fs_info *fs_info, - struct folio *folio, u64 start, u32 len); void btrfs_get_subpage_dirty_bitmap(struct btrfs_fs_info *fs_info, struct folio *folio, unsigned long *ret_bitmap); |