diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2017-02-27 10:10:35 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-29 21:17:02 +0300 |
commit | d1b8b94a2b4f416b416bdfde46315e9aef17f358 (patch) | |
tree | 271e0e92eea260df6b2cb01f45eba3895419b898 /fs/btrfs/qgroup.h | |
parent | 5edfd9fdc644bf426a8bf9192d9c1a3680d75862 (diff) | |
download | linux-d1b8b94a2b4f416b416bdfde46315e9aef17f358.tar.xz |
btrfs: qgroup: Cleanup btrfs_qgroup_prepare_account_extents function
Quite a lot of qgroup corruption happens due to wrong time of calling
btrfs_qgroup_prepare_account_extents().
Since the safest time is to call it just before
btrfs_qgroup_account_extents(), there is no need to separate these 2
functions.
Merging them will make code cleaner and less bug prone.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
[ changelog and comment adjustments ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/qgroup.h')
-rw-r--r-- | fs/btrfs/qgroup.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.h b/fs/btrfs/qgroup.h index fe04d3f295c6..d11125d6afb9 100644 --- a/fs/btrfs/qgroup.h +++ b/fs/btrfs/qgroup.h @@ -134,8 +134,7 @@ int btrfs_limit_qgroup(struct btrfs_trans_handle *trans, int btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info); void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info); struct btrfs_delayed_extent_op; -int btrfs_qgroup_prepare_account_extents(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info); + /* * Inform qgroup to trace one dirty extent, its info is recorded in @record. * So qgroup can account it at transaction committing time. |