diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2017-06-22 16:51:48 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2017-08-16 17:12:05 +0300 |
| commit | 8d8aafeea23e2d641460d7e6231361f0322ac058 (patch) | |
| tree | 480aa86869881eb7164a1a5b36c7d62276cd438d /tools/perf/scripts/python/syscall-counts.py | |
| parent | f44d2287d2879f50b921e909b2377d6dcba3e251 (diff) | |
| download | linux-8d8aafeea23e2d641460d7e6231361f0322ac058.tar.xz | |
btrfs: Simplify math in should_alloc chunk
Currently should_alloc_chunk uses ->total_bytes - ->bytes_readonly to
signify the total amount of bytes in this space info. However, given
Jeff's patch which adds bytes_pinned and bytes_may_use to the calculation
of num_allocated it becomes a lot more clear to just eliminate num_bytes
altogether and add the bytes_readonly to the amount of used space. That
way we don't change the results of the following statements. In the
process also start using btrfs_space_info_used.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
