All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Siwtch to on-stack variables for block reserves
@ 2023-09-22 19:10 David Sterba
  2023-09-22 19:10 ` [PATCH 1/5] btrfs: use on-stack variable for block reserve in btrfs_evict_inode David Sterba
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: David Sterba @ 2023-09-22 19:10 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

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(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-27 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-22 19:10 [PATCH 0/5] Siwtch to on-stack variables for block reserves David Sterba
2023-09-22 19:10 ` [PATCH 1/5] btrfs: use on-stack variable for block reserve in btrfs_evict_inode David Sterba
2023-09-22 19:10 ` [PATCH 2/5] btrfs: use on-stack variable for block reserve in btrfs_truncate David Sterba
2023-09-22 19:10 ` [PATCH 3/5] btrfs: use on-stack variable for block reserve in btrfs_replace_file_extents David Sterba
2023-09-22 19:10 ` [PATCH 4/5] btrfs: relocation: embed block reserve to struct reloc_control David Sterba
2023-09-22 19:10 ` [PATCH 5/5] btrfs: remove unused alloc and free helpers for block group reserves David Sterba
2023-09-27 14:29 ` [PATCH 0/5] Siwtch to on-stack variables for block reserves David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.