diff options
author | 2020-02-04 19:05:58 +0800 | |
---|---|---|
committer | 2020-03-23 17:01:46 +0100 | |
commit | b82582d668b581c6b3c488278e18def2e98bb2ab (patch) | |
tree | a90c3ae17d57b27a5b48ba3e85ce8552a86d63a3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: merge unlocking to common exit block in btrfs_commit_transaction (diff) | |
download | linux-dev-b82582d668b581c6b3c488278e18def2e98bb2ab.tar.xz linux-dev-b82582d668b581c6b3c488278e18def2e98bb2ab.zip |
btrfs: slightly simplify global block reserve calculations
In btrfs_update_global_block_rsv the lines:
num_bytes = block_rsv->size - block_rsv->reserved;
block_rsv->reserved += num_bytes;
imply:
block_rsv->reserved = block_rsv->size;
Assign block_rsv->size to block_rsv->reserved directly and reorder lines
so they match the other branch.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions