summaryrefslogtreecommitdiff
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2024-09-02 07:27:08 +0300
committerDavid Sterba <dsterba@suse.com>2024-09-10 17:51:22 +0300
commit49a9907368a4633fe19c477159da7a3199c808ee (patch)
tree7db746e8123a08a6452bd94d7f9ae7e0000573ee /rust/helpers/task.c
parent68f32b9c98522b9689e82627abeb5c10b3501915 (diff)
downloadlinux-49a9907368a4633fe19c477159da7a3199c808ee.tar.xz
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 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions