diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-10-18 03:31:27 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 13:45:21 +0100 |
commit | 50b3e040b7c092c3c157f3febaaac77038e9f6fd (patch) | |
tree | da58d2446e8e77e0e8fc03275c3b05e3291dc2b1 /fs/btrfs/extent-tree.c | |
parent | btrfs: qgroup: Add comments explaining how btrfs qgroup works (diff) | |
download | linux-50b3e040b7c092c3c157f3febaaac77038e9f6fd.tar.xz linux-50b3e040b7c092c3c157f3febaaac77038e9f6fd.zip |
btrfs: qgroup: Rename functions to make it follow reserve,trace,account steps
Rename btrfs_qgroup_insert_dirty_extent(_nolock) to
btrfs_qgroup_trace_extent(_nolock), according to the new
reserve/trace/account naming schema.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-and-Tested-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index c17b0d1b081f..1ad5643a507b 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -8571,8 +8571,8 @@ static int account_leaf_items(struct btrfs_trans_handle *trans, num_bytes = btrfs_file_extent_disk_num_bytes(eb, fi); - ret = btrfs_qgroup_insert_dirty_extent(trans, root->fs_info, - bytenr, num_bytes, GFP_NOFS); + ret = btrfs_qgroup_trace_extent(trans, root->fs_info, + bytenr, num_bytes, GFP_NOFS); if (ret) return ret; } @@ -8721,7 +8721,7 @@ walk_down: btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK); path->locks[level] = BTRFS_READ_LOCK_BLOCKING; - ret = btrfs_qgroup_insert_dirty_extent(trans, + ret = btrfs_qgroup_trace_extent(trans, root->fs_info, child_bytenr, root->nodesize, GFP_NOFS); if (ret) |