summaryrefslogtreecommitdiff
path: root/fs/btrfs/export.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-04-30 16:52:27 +0100
committerDavid Sterba <dsterba@suse.com>2024-07-11 15:33:17 +0200
commit3d7db6e8bd22e692e0b7073eb7d12c9c1bbaeb2d (patch)
tree2eaebdba0550c386daddd4e407a53f8e2f557b3a /fs/btrfs/export.c
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 <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/export.c')
0 files changed, 0 insertions, 0 deletions