btrfs: inode management and memory consumption improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest10 patches 4 repliesIn review
- v18 patches 13 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | btrfs: use an xarray to track open inodes in a rootfs/ fs/ fs/ +1 more | +58 | 1 reply | |
| 2/10 | btrfs: preallocate inodes xarray entry to avoid transaction abortfs/ | +19 | 0 replies | |
| 3/10 | btrfs: reduce nesting and deduplicate error handling at btrfs_iget_path()fs/ | +21 | 0 replies | |
| 4/10 | btrfs: remove inode_lock from struct btrfs_root and use xarray locksfs/ fs/ fs/ +1 more | +20 | 0 replies | |
| 5/10 | btrfs: unify index_cnt and csum_bytes from struct btrfs_inodefs/ fs/ fs/ +2 more | +54 | 0 replies | |
| 6/10 | btrfs: don't allocate file extent tree for non regular filesfs/ fs/ | +42 | 0 replies | |
| 7/10 | btrfs: remove location key from struct btrfs_inodefs/ fs/ fs/ +4 more | +63 | 0 replies | |
| 8/10 | btrfs: remove objectid from struct btrfs_inode on 64 bits platformsfs/ fs/ fs/ +3 more | +45 | 0 replies | |
| 9/10 | btrfs: rename rb_root member of extent_map_tree from map to rootfs/ fs/ fs/ | +15 | 0 replies | |
| 10/10 | btrfs: use a regular rb_root instead of cached rb_root for extent_map_treefs/ fs/ fs/ | +30 | 1 reply |
Reviews trailers per patch
6 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Qu Wenruo | David Sterba |
|---|---|---|
| Series | R-b | |
| 1/10 | R-b | |
| 2/10 | R-b | |
| 3/10 | R-b | |
| 4/10 | R-b | |
| 5/10 | R-b | |
| 6/10 | R-b | |
| 7/10 | ||
| 8/10 | ||
| 9/10 | ||
| 10/10 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/10] btrfs: inode management and memory consumption improvements
From: Filipe Manana <[email protected]>
Some inode related improvements, to use an xarray to track open inodes per root instead of a red black tree, reduce lock contention and use less memory per btrfs inode, so now we can fit 4 inodes per 4K page instead of 3. More details in the change logs.
V2: Added two more patches (9/10 and 10/10) to make sure btrfs_inode size
is reduced to 1024 bytes when CONFIG_FS_ENCRYPTION and CONFIG_FS_VERITY are set. I wasn't using these configs before, and with them the final size for btrfs_inode was 1032 bytes and not 1016 bytes as I initially had - now the final size is 1024 bytes with those configs enabled.
Filipe Manana (10):
btrfs: use an xarray to track open inodes in a root
btrfs: preallocate inodes xarray entry to avoid transaction abort
btrfs: reduce nesting and deduplicate error handling at btrfs_iget_path()
btrfs: remove inode_lock from struct btrfs_root and use xarray locks
btrfs: unify index_cnt and csum_bytes from struct btrfs_inode
btrfs: don't allocate file extent tree for non regular files
btrfs: remove location key from struct btrfs_inode
btrfs: remove objectid from struct btrfs_inode on 64 bits platforms
btrfs: rename rb_root member of extent_map_tree from map to root
btrfs: use a regular rb_root instead of cached rb_root for extent_map_tree
fs/btrfs/btrfs_inode.h | 130 ++++++++++---- fs/btrfs/ctree.h | 8 +- fs/btrfs/delayed-inode.c | 29 ++- fs/btrfs/disk-io.c | 12 +- fs/btrfs/export.c | 2 +- fs/btrfs/extent_map.c | 50 +++--- fs/btrfs/extent_map.h | 2 +- fs/btrfs/file-item.c | 13 +- fs/btrfs/inode.c | 286 +++++++++++++++--------------- fs/btrfs/ioctl.c | 8 +- fs/btrfs/relocation.c | 12 +- fs/btrfs/tests/btrfs-tests.c | 5 +- fs/btrfs/tests/extent-map-tests.c | 6 +- fs/btrfs/tree-log.c | 9 +- 14 files changed, 317 insertions(+), 255 deletions(-)
Signature · 1 line
2.43.0