Skip to content

Switch to on-stack variables for block reserves

David Sterba linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 0 repliesNew

Changes in v2 from the cover letter

- drop patch replacing allocated reserve in relocation, crash in btrfs/190
- v1 https://lore.kernel.org/linux-btrfs/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: use on-stack variable for block reserve in btrfs_evict_inode()fs/btrfs/inode.c+12 -130 replies
2/3btrfs: use on-stack variable for block reserve in btrfs_truncate()fs/btrfs/inode.c+10 -120 replies
3/3btrfs: use on-stack variable for block reserve in btrfs_replace_file_extents()fs/btrfs/file.c+12 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/3 v2] Switch 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.

v2:
- drop patch replacing allocated reserve in relocation, crash in btrfs/190
- v1 https://lore.kernel.org/linux-btrfs/[email protected]/

David Sterba (3):
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()

 fs/btrfs/file.c  | 29 ++++++++++++-----------------
 fs/btrfs/inode.c | 47 ++++++++++++++++++++++-------------------------
 2 files changed, 34 insertions(+), 42 deletions(-)
Signature · 1 line
2.47.1