btrfs: combine btrfs_clear_buffer_dirty and clear_extent_buffer_dirty
authorJosef Bacik <josef@toxicpanda.com>
Thu, 26 Jan 2023 21:00:59 +0000 (16:00 -0500)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:54 +0000 (19:38 +0100)
commit98c8d683c291285be35c50579ac984e71d17ddc1
tree5d307d2e23f941d01b7151ca0a49cb6b2555bcba
parent190a83391bc40862538572d1313c207c348d356d
btrfs: combine btrfs_clear_buffer_dirty and clear_extent_buffer_dirty

btrfs_clear_buffer_dirty just does the test_clear_bit() and then calls
clear_extent_buffer_dirty and does the dirty metadata accounting.
Combine this into clear_extent_buffer_dirty and make the result
btrfs_clear_buffer_dirty.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h