public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/12] Short cleanups
@ 2026-01-06 16:20 David Sterba
  2026-01-06 16:20 ` [PATCH 01/12] btrfs: remove duplicate calculation of eb offset in btrfs_bin_search() David Sterba
                   ` (11 more replies)
  0 siblings, 12 replies; 25+ messages in thread
From: David Sterba @ 2026-01-06 16:20 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

Collection of short clenups that improve code that's somehow performance
sensitive. The improvements are on instruction level or reduce stack
consumption.

David Sterba (12):
  btrfs: remove duplicate calculation of eb offset in btrfs_bin_search()
  btrfs: unify types for binary search variables
  btrfs: rename local variable for offset in folio
  btrfs: read eb folio index right before loops
  btrfs: use common eb range validation in
    read_extent_buffer_to_user_nofault()
  btrfs: lzo: inline read/write length helpers
  btrfs: zlib: drop redundant folio address variable
  btrfs: zlib: don't cache sectorsize in a local variable
  btrfs: zlib: remove local variable nr_dest_folios in
    zlib_compress_folios()
  btrfs: zstd: reuse total in and out parameters for calculations
  btrfs: zstd: don't cache sectorsize in a local variable
  btrfs: zstd: remove local variable nr_dest_folios in
    zstd_compress_folios()

 fs/btrfs/ctree.c     | 11 +++++------
 fs/btrfs/extent_io.c | 23 ++++++++++++-----------
 fs/btrfs/lzo.c       | 28 ++++++----------------------
 fs/btrfs/zlib.c      | 25 +++++++++----------------
 fs/btrfs/zstd.c      | 43 +++++++++++++++++--------------------------
 5 files changed, 49 insertions(+), 81 deletions(-)

-- 
2.51.1


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

end of thread, other threads:[~2026-01-08 21:14 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 16:20 [PATCH 00/12] Short cleanups David Sterba
2026-01-06 16:20 ` [PATCH 01/12] btrfs: remove duplicate calculation of eb offset in btrfs_bin_search() David Sterba
2026-01-07 19:34   ` Boris Burkov
2026-01-06 16:20 ` [PATCH 02/12] btrfs: unify types for binary search variables David Sterba
2026-01-07 19:33   ` Boris Burkov
2026-01-08 20:45     ` David Sterba
2026-01-06 16:20 ` [PATCH 03/12] btrfs: rename local variable for offset in folio David Sterba
2026-01-07 19:34   ` Boris Burkov
2026-01-06 16:20 ` [PATCH 04/12] btrfs: read eb folio index right before loops David Sterba
2026-01-07 22:01   ` Boris Burkov
2026-01-08 21:04     ` David Sterba
2026-01-06 16:20 ` [PATCH 05/12] btrfs: use common eb range validation in read_extent_buffer_to_user_nofault() David Sterba
2026-01-08 18:32   ` Boris Burkov
2026-01-06 16:20 ` [PATCH 06/12] btrfs: lzo: inline read/write length helpers David Sterba
2026-01-06 16:20 ` [PATCH 07/12] btrfs: zlib: drop redundant folio address variable David Sterba
2026-01-06 16:20 ` [PATCH 08/12] btrfs: zlib: don't cache sectorsize in a local variable David Sterba
2026-01-06 16:20 ` [PATCH 09/12] btrfs: zlib: remove local variable nr_dest_folios in zlib_compress_folios() David Sterba
2026-01-08 18:37   ` Boris Burkov
2026-01-08 21:14     ` David Sterba
2026-01-06 16:20 ` [PATCH 10/12] btrfs: zstd: reuse total in and out parameters for calculations David Sterba
2026-01-08 18:42   ` Boris Burkov
2026-01-06 16:20 ` [PATCH 11/12] btrfs: zstd: don't cache sectorsize in a local variable David Sterba
2026-01-08 18:53   ` Boris Burkov
2026-01-06 16:20 ` [PATCH 12/12] btrfs: zstd: remove local variable nr_dest_folios in zstd_compress_folios() David Sterba
2026-01-08 18:44   ` Boris Burkov

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