aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-04-30 16:52:27 +0100
committerDavid Sterba <[email protected]>2024-07-11 15:33:17 +0200
commit3d7db6e8bd22e692e0b7073eb7d12c9c1bbaeb2d (patch)
tree2eaebdba0550c386daddd4e407a53f8e2f557b3a /tools/perf/scripts/python/flamegraph.py
parentd9891ae28b0d3d3a188c502d33f04c1fb3ffd950 (diff)
btrfs: don't allocate file extent tree for non regular files
When not using the NO_HOLES feature we always allocate an io tree for an inode's file_extent_tree. This is wasteful because that io tree is only used for regular files, so we allocate more memory than needed for inodes that represent directories or symlinks for example, or for inodes that correspond to free space inodes. So improve on this by allocating the io tree only for inodes of regular files that are not free space inodes. Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions