Siwtch to on-stack variables for block reserves
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | btrfs: use on-stack variable for block reserve in btrfs_evict_inodefs/ | +12 | 0 replies | |
| 2/5 | btrfs: use on-stack variable for block reserve in btrfs_truncatefs/ | +10 | 0 replies | |
| 3/5 | btrfs: use on-stack variable for block reserve in btrfs_replace_file_extentsfs/ | +12 | 0 replies | |
| 4/5 | btrfs: relocation: embed block reserve to struct reloc_controlfs/ | +21 | 0 replies | |
| 5/5 | btrfs: remove unused alloc and free helpers for block group reservesfs/ fs/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Siwtch to on-stack variables for block reserves
The block reserve structure is small enough to fit on stack so do that in a few functions and avoid allocation. This in turn allows to remove the alloc/free wrappers.
David Sterba (5):
btrfs: use on-stack variable for block reserve in btrfs_evict_inode
btrfs: use on-stack variable for block reserve in btrfs_truncate
btrfs: use on-stack variable for block reserve in btrfs_replace_file_extents
btrfs: relocation: embed block reserve to struct reloc_control
btrfs: remove unused alloc and free helpers for block group reserves
fs/btrfs/block-rsv.c | 22 -------------------- fs/btrfs/block-rsv.h | 4 ---- fs/btrfs/file.c | 29 +++++++++++--------------- fs/btrfs/inode.c | 47 ++++++++++++++++++++----------------------- fs/btrfs/relocation.c | 46 +++++++++++++++++++----------------------- 5 files changed, 55 insertions(+), 93 deletions(-)
Signature · 1 line
2.41.0