btrfs: Introduce unaccount_log_buffer
authorNikolay Borisov <nborisov@suse.com>
Mon, 20 Jan 2020 14:09:10 +0000 (16:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:36 +0000 (17:01 +0100)
commit6787bb9f35157f718b53e6b63461e446a148e751
treeb4792bba19f8796f75d6b1cfba1391865ff81c5c
parentb25c36f84b59a64fd5815f341b6ddbd8a8a2bb56
btrfs: Introduce unaccount_log_buffer

This function correctly adjusts the reserved bytes occupied by a log
tree extent buffer. It will be used instead of calling
btrfs_pin_reserved_extent.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c