public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: optimize the argument list for submit_extent_page()
@ 2022-09-12  6:28 Qu Wenruo
  2022-09-12  6:28 ` [PATCH 1/2] btrfs: switch the page and disk_bytenr argument position " Qu Wenruo
  2022-09-12  6:28 ` [PATCH 2/2] btrfs: move end_io_func argument to btrfs_bio_ctrl structure Qu Wenruo
  0 siblings, 2 replies; 5+ messages in thread
From: Qu Wenruo @ 2022-09-12  6:28 UTC (permalink / raw)
  To: linux-btrfs

The argument list of submit_extent_page() is already a little long.

Although we have things like page, pg_len, pg_off which can not be saved
anyway, we can still improve the situation by:

- Make sure @page, @pg_len, @pg_off are always batched together
  Just like bio_add_page().

  This is done by the first page, just switching the position between
  @page and @disk_bytenr.

- Move @end_io_func arugment into btrfs_bio_ctrl structure.

Qu Wenruo (2):
  btrfs: switch the page and disk_bytenr argument position for
    submit_extent_page()
  btrfs: move end_io_func argument to btrfs_bio_ctrl structure

 fs/btrfs/extent_io.c | 55 +++++++++++++++++++++++++-------------------
 1 file changed, 31 insertions(+), 24 deletions(-)

-- 
2.37.3


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

end of thread, other threads:[~2022-09-12 13:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-12  6:28 [PATCH 0/2] btrfs: optimize the argument list for submit_extent_page() Qu Wenruo
2022-09-12  6:28 ` [PATCH 1/2] btrfs: switch the page and disk_bytenr argument position " Qu Wenruo
2022-09-12 13:05   ` Anand Jain
2022-09-12  6:28 ` [PATCH 2/2] btrfs: move end_io_func argument to btrfs_bio_ctrl structure Qu Wenruo
2022-09-12 13:12   ` Anand Jain

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