All of lore.kernel.org
 help / color / mirror / Atom feed
* improve type safety by passing struct btrfs_bio around
@ 2023-03-01 13:42 Christoph Hellwig
  2023-03-01 13:42 ` [PATCH 01/10] btrfs: remove unused members from struct btrfs_encoded_read_private Christoph Hellwig
                   ` (10 more replies)
  0 siblings, 11 replies; 48+ messages in thread
From: Christoph Hellwig @ 2023-03-01 13:42 UTC (permalink / raw)
  To: Chris Mason, Josef Bacik, David Sterba; +Cc: linux-btrfs

Hi all,

much of the btrfs I/O path work on a struct btrfs_bio but passes pointers
to the bio embedded into that around.  This series improves type safety
by always passing the actual btrfs_bio instead.

Diffstat:
 bio.c         |   53 ++++++++++++++++++++++--------------------
 bio.h         |    8 +++---
 compression.c |   33 ++++++++++++++------------
 compression.h |    4 +--
 extent_io.c   |   72 ++++++++++++++++++++++++++--------------------------------
 inode.c       |   57 +++++++++++++++++++--------------------------
 lzo.c         |   14 ++++-------
 zlib.c        |    2 -
 zstd.c        |    1 
 9 files changed, 114 insertions(+), 130 deletions(-)

^ permalink raw reply	[flat|nested] 48+ messages in thread
* improve type safety by passing struct btrfs_bio where possible v2
@ 2023-03-07 16:39 Christoph Hellwig
  2023-03-07 16:39 ` [PATCH 09/10] btrfs: return a btrfs_bio from btrfs_bio_alloc Christoph Hellwig
  0 siblings, 1 reply; 48+ messages in thread
From: Christoph Hellwig @ 2023-03-07 16:39 UTC (permalink / raw)
  To: Chris Mason, Josef Bacik, David Sterba; +Cc: linux-btrfs

Hi all,

much of the btrfs I/O path work on a struct btrfs_bio but passes pointers
to the bio embedded into that around.  This series improves type safety
by always passing the actual btrfs_bio instead.

Changes since v1:
 - fix commit message and commit typos

Diffstat:
 bio.c         |   53 +++++++++++++++++++++--------------------
 bio.h         |    8 +++---
 compression.c |   33 ++++++++++++++-----------
 compression.h |    4 +--
 extent_io.c   |   74 ++++++++++++++++++++++++++--------------------------------
 inode.c       |   57 ++++++++++++++++++--------------------------
 lzo.c         |   14 +++-------
 zlib.c        |    2 -
 zstd.c        |    1 
 9 files changed, 115 insertions(+), 131 deletions(-)

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

end of thread, other threads:[~2023-03-07 16:44 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01 13:42 improve type safety by passing struct btrfs_bio around Christoph Hellwig
2023-03-01 13:42 ` [PATCH 01/10] btrfs: remove unused members from struct btrfs_encoded_read_private Christoph Hellwig
2023-03-02 12:10   ` Johannes Thumshirn
2023-03-02 23:19   ` Qu Wenruo
2023-03-03  9:14   ` Anand Jain
2023-03-01 13:42 ` [PATCH 02/10] btrfs: cleanup btrfs_encoded_read_regular_fill_pages Christoph Hellwig
2023-03-02 12:15   ` Johannes Thumshirn
2023-03-02 23:24   ` Qu Wenruo
2023-03-03 14:24     ` Christoph Hellwig
2023-03-03  9:14   ` Anand Jain
2023-03-01 13:42 ` [PATCH 03/10] btrfs: move zero filling of compressed read bios into common code Christoph Hellwig
2023-03-02 12:17   ` Johannes Thumshirn
2023-03-02 23:25   ` Qu Wenruo
2023-03-03  9:15   ` Anand Jain
2023-03-01 13:42 ` [PATCH 04/10] btrfs: pass a btrfs_bio to btrfs_submit_bio Christoph Hellwig
2023-03-02 12:19   ` Johannes Thumshirn
2023-03-02 23:26   ` Qu Wenruo
2023-03-03  9:15   ` Anand Jain
2023-03-01 13:42 ` [PATCH 05/10] btrfs: pass a btrfs_bio to btrfs_submit_compressed_read Christoph Hellwig
2023-03-02 13:00   ` Johannes Thumshirn
2023-03-02 23:27   ` Qu Wenruo
2023-03-03  9:15   ` Anand Jain
2023-03-01 13:42 ` [PATCH 06/10] btrfs: store a pointer to the original btrfs_bio in struct compressed_bio Christoph Hellwig
2023-03-02 13:01   ` Johannes Thumshirn
2023-03-02 23:28   ` Qu Wenruo
2023-03-03  9:16   ` Anand Jain
2023-03-01 13:42 ` [PATCH 07/10] btrfs: simplify finding the inode in submit_one_bio Christoph Hellwig
2023-03-02 13:10   ` Johannes Thumshirn
2023-03-02 23:30   ` Qu Wenruo
2023-03-03  9:16   ` Anand Jain
2023-03-01 13:42 ` [PATCH 08/10] btrfs: store a pointer to a btrfs_bio in struct btrfs_bio_ctrl Christoph Hellwig
2023-03-02 14:20   ` Johannes Thumshirn
2023-03-03 14:25     ` Christoph Hellwig
2023-03-02 23:31   ` Qu Wenruo
2023-03-03  9:16   ` Anand Jain
2023-03-01 13:42 ` [PATCH 09/10] btrfs: return a btrfs_bio from btrfs_bio_alloc Christoph Hellwig
2023-03-02 14:22   ` Johannes Thumshirn
2023-03-02 23:31   ` Qu Wenruo
2023-03-03 22:48   ` Anand Jain
2023-03-04  3:38     ` Anand Jain
2023-03-06 16:57     ` Christoph Hellwig
2023-03-01 13:42 ` [PATCH 10/10] btrfs: make btrfs_split_bio work on struct btrfs_bio Christoph Hellwig
2023-03-02 14:25   ` Johannes Thumshirn
2023-03-02 23:32   ` Qu Wenruo
2023-03-03 23:13   ` Anand Jain
2023-03-02 23:34 ` improve type safety by passing struct btrfs_bio around Qu Wenruo
2023-03-03 14:27   ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2023-03-07 16:39 improve type safety by passing struct btrfs_bio where possible v2 Christoph Hellwig
2023-03-07 16:39 ` [PATCH 09/10] btrfs: return a btrfs_bio from btrfs_bio_alloc Christoph Hellwig

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.