From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/3] Tree and inode lookup cleanups
Date: Fri, 15 May 2020 19:35:52 +0200 [thread overview]
Message-ID: <cover.1589563951.git.dsterba@suse.com> (raw)
Simplify functions that take struct key for lookup but don't use all the
members. Reduces size of .ko by about 1.2K and stack consumption is
reduced by 450 bytes in total.
David Sterba (3):
btrfs: simplify root lookup by id
btrfs: open code read_fs_root
btrfs: simplify iget helpers
fs/btrfs/backref.c | 13 ++---------
fs/btrfs/ctree.h | 5 ++--
fs/btrfs/disk-io.c | 35 +++++++++++++---------------
fs/btrfs/disk-io.h | 3 +--
fs/btrfs/export.c | 17 +++-----------
fs/btrfs/file.c | 12 ++--------
fs/btrfs/free-space-cache.c | 2 +-
fs/btrfs/inode.c | 42 +++++++++++++++++----------------
fs/btrfs/ioctl.c | 30 ++++++------------------
fs/btrfs/props.c | 9 ++------
fs/btrfs/relocation.c | 46 +++++++++++--------------------------
fs/btrfs/root-tree.c | 12 ++++------
fs/btrfs/scrub.c | 6 +----
fs/btrfs/send.c | 22 ++++--------------
fs/btrfs/super.c | 11 ++-------
fs/btrfs/transaction.c | 2 +-
fs/btrfs/tree-log.c | 32 ++++++++++----------------
fs/btrfs/uuid-tree.c | 6 +----
18 files changed, 99 insertions(+), 206 deletions(-)
--
2.25.0
next reply other threads:[~2020-05-15 17:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-15 17:35 David Sterba [this message]
2020-05-15 17:35 ` [PATCH 1/3] btrfs: simplify root lookup by id David Sterba
2020-05-15 17:35 ` [PATCH 2/3] btrfs: open code read_fs_root David Sterba
2020-05-15 17:35 ` [PATCH 3/3] btrfs: simplify iget helpers David Sterba
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.1589563951.git.dsterba@suse.com \
--to=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/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).