All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] btrfs: allocate page arrays more efficiently
@ 2022-03-30 20:11 Sweet Tea Dorminy
  2022-03-30 20:11 ` [PATCH v3 1/2] btrfs: factor out allocating an array of pages Sweet Tea Dorminy
  2022-03-30 20:11 ` [PATCH v3 2/2] btrfs: allocate page arrays using bulk page allocator Sweet Tea Dorminy
  0 siblings, 2 replies; 7+ messages in thread
From: Sweet Tea Dorminy @ 2022-03-30 20:11 UTC (permalink / raw)
  To: Chris Mason, Josef Bacik, David Sterba, Nick Terrell,
	linux-kernel, linux-btrfs, kernel-team
  Cc: Sweet Tea Dorminy

In several places, btrfs allocates an array of pages, one at a time.  In
addition to duplicating code, the mm subsystem provides a helper to
allocate multiple pages at once into an array which is suited for our
usecase. In the fast path, the batching can result in better allocation
decisions and less locking. This changeset first adjusts the users to
call a common array-of-pages allocation function, then adjusts that
common function to use the batch page allocator.

v3:
 - fixed up the other style comments from kdave's v1 comments
v2:
 - moved new helper to extent_io.[ch]; fixed title format
 - https://lore.kernel.org/linux-btrfs/cover.1648658235.git.sweettea-kernel@dorminy.me/ 
v1:
 - https://lore.kernel.org/linux-btrfs/cover.1648496453.git.sweettea-kernel@dorminy.me/

Sweet Tea Dorminy (2):
  btrfs: factor out allocating an array of pages
  btrfs: allocate page arrays using bulk page allocator

 fs/btrfs/check-integrity.c |  8 ++---
 fs/btrfs/compression.c     | 39 +++++++++------------
 fs/btrfs/extent_io.c       | 71 +++++++++++++++++++++++++++++---------
 fs/btrfs/extent_io.h       |  2 ++
 fs/btrfs/inode.c           | 10 +++---
 fs/btrfs/raid56.c          | 30 +++-------------
 6 files changed, 85 insertions(+), 75 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-04-01 13:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-30 20:11 [PATCH v3 0/2] btrfs: allocate page arrays more efficiently Sweet Tea Dorminy
2022-03-30 20:11 ` [PATCH v3 1/2] btrfs: factor out allocating an array of pages Sweet Tea Dorminy
2022-03-31 17:26   ` David Sterba
2022-03-30 20:11 ` [PATCH v3 2/2] btrfs: allocate page arrays using bulk page allocator Sweet Tea Dorminy
2022-03-31 17:35   ` David Sterba
2022-03-31 18:19     ` Sweet Tea Dorminy
2022-04-01 13:26       ` 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.