aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-04-30 15:52:27 +0000
committerDavid Sterba <[email protected]>2024-07-11 13:33:17 +0000
commit3d7db6e8bd22e692e0b7073eb7d12c9c1bbaeb2d (patch)
tree2eaebdba0550c386daddd4e407a53f8e2f557b3a /fs/btrfs/tree-log.c
parentbtrfs: unify index_cnt and csum_bytes from struct btrfs_inode (diff)
downloadkernel-3d7db6e8bd22e692e0b7073eb7d12c9c1bbaeb2d.tar.gz
kernel-3d7db6e8bd22e692e0b7073eb7d12c9c1bbaeb2d.zip
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 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions