]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: qgroup: Introduce function to convert META_PREALLOC into META_PERTRANS
authorQu Wenruo <wqu@suse.com>
Tue, 12 Dec 2017 07:34:31 +0000 (15:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 23:41:14 +0000 (01:41 +0200)
commit6f3fb37b681254435b487d4ae613d7325ef07a25
tree226ac6bfc09822f57aeb5809880e43d094ad78c9
parent271077bd99f383512d3b7adbae1de08d122d3907
btrfs: qgroup: Introduce function to convert META_PREALLOC into META_PERTRANS

For meta_prealloc reservation users, after btrfs_join_transaction()
caller will modify tree so part (or even all) meta_prealloc reservation
should be converted to meta_pertrans until transaction commit time.

This patch introduces a new function,
btrfs_qgroup_convert_reserved_meta() to do this for META_PREALLOC
reservation user.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c
fs/btrfs/qgroup.h