public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] Switch to on-stack variables for block reserves
@ 2025-06-04  9:29 David Sterba
  2025-06-04  9:29 ` [PATCH 1/3] btrfs: use on-stack variable for block reserve in btrfs_evict_inode() David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Sterba @ 2025-06-04  9:29 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.

v2:
- drop patch replacing allocated reserve in relocation, crash in btrfs/190
- v1 https://lore.kernel.org/linux-btrfs/cover.1695408280.git.dsterba@suse.com/

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

-- 
2.47.1


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

end of thread, other threads:[~2025-06-04  9:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-04  9:29 [PATCH 0/3 v2] Switch to on-stack variables for block reserves David Sterba
2025-06-04  9:29 ` [PATCH 1/3] btrfs: use on-stack variable for block reserve in btrfs_evict_inode() David Sterba
2025-06-04  9:29 ` [PATCH 2/3] btrfs: use on-stack variable for block reserve in btrfs_truncate() David Sterba
2025-06-04  9:29 ` [PATCH 3/3] btrfs: use on-stack variable for block reserve in btrfs_replace_file_extents() David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox