From: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
To: Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>,
David Sterba <dsterba@suse.com>, Nick Terrell <terrelln@fb.com>,
linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org,
kernel-team@fb.com
Cc: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Subject: [PATCH 0/2] btrfs: Allocate page arrays more efficiently.
Date: Mon, 28 Mar 2022 16:14:26 -0400 [thread overview]
Message-ID: <cover.1648496453.git.sweettea-kernel@dorminy.me> (raw)
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.
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 | 37 +++++++++++++++--------------------
fs/btrfs/ctree.c | 32 ++++++++++++++++++++++++++++++
fs/btrfs/ctree.h | 2 ++
fs/btrfs/extent_io.c | 40 +++++++++++++++++++++++---------------
fs/btrfs/inode.c | 10 ++++------
fs/btrfs/raid56.c | 30 ++++------------------------
7 files changed, 85 insertions(+), 74 deletions(-)
--
2.35.1
next reply other threads:[~2022-03-28 20:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-28 20:14 Sweet Tea Dorminy [this message]
2022-03-28 21:58 ` [PATCH 0/2] btrfs: Allocate page arrays more efficiently David Sterba
[not found] <cover.1648497027.git.sweettea-kernel@dorminy.me>
2022-03-28 20:14 ` [PATCH 1/2] btrfs: Factor out allocating an array of pages Sweet Tea Dorminy
2022-03-28 23:09 ` David Sterba
2022-03-30 19:01 ` Sweet Tea Dorminy
2022-03-29 10:04 ` Filipe Manana
2022-03-29 18:30 ` Nikolay Borisov
2022-03-28 20:14 ` [PATCH 2/2] btrfs: Allocate page arrays using bulk page allocator Sweet Tea Dorminy
2022-03-28 20:14 ` Sweet Tea Dorminy
2022-03-29 18:31 ` Nikolay Borisov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1648496453.git.sweettea-kernel@dorminy.me \
--to=sweettea-kernel@dorminy.me \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=kernel-team@fb.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=terrelln@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).