diff options
| author | Jeff Mahoney <[email protected]> | 2017-05-17 11:38:36 -0400 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2017-06-19 18:26:00 +0200 |
| commit | c1c4919b112d2591bea5c68b54a24f083619f81b (patch) | |
| tree | 2cd3e3d7712d7ca7a124a2d9095cc29947e8ad2b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 1b86826d12dc4acf9576cad9c43da74025dc8074 (diff) | |
btrfs: remove root usage from can_overcommit
can_overcommit using the root to determine the allocation profile
is the only use of a root in the call graph below reserve_metadata_bytes.
It turns out that we only need to know whether the allocation is for
the chunk root or not -- and we can pass that around as a bool instead.
This allows us to pull root usage out of the reservation path all the
way up to reserve_metadata_bytes itself, which uses it only to compare
against fs_info->chunk_root to set the bool. In turn, this eliminates
a bunch of races where we use a particular root too early in the mount
process.
Signed-off-by: Jeff Mahoney <[email protected]>
Reviewed-by: Liu Bo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions