From: Nikolay Borisov <nborisov@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH 0/4] Misc freespace cache cleanups
Date: Tue, 23 Nov 2021 14:44:18 +0200 [thread overview]
Message-ID: <20211123124422.5830-1-nborisov@suse.com> (raw)
Here's an assortment of freespace cache cleanups. 2 patches to consolidated some
functions and 2 other to simplify/clarify arguments of called functions. This
all results in a nice reduction of lines of code as well as code size:
$./scripts/bloat-o-meter fs/btrfs/free-space-cache.o free-space-cache.patched
add/remove: 0/0 grow/shrink: 0/8 up/down: 0/-549 (-549)
Function old new delta
__btrfs_add_free_space 1124 1123 -1
btrfs_find_space_for_alloc 1042 1039 -3
btrfs_remove_free_space 648 644 -4
do_trimming 550 530 -20
btrfs_add_free_space 75 55 -20
btrfs_add_free_space_async_trimmed 79 57 -22
try_merge_free_space 602 505 -97
steal_from_bitmap 1522 1140 -382
Total: Before=29299, After=28750, chg -1.87%
Nikolay Borisov (4):
btrfs: consolidate bitmap_clear_bits/__bitmap_clear_bits
btrfs: consolidate unlink_free_space/__unlink_free_space functions
btrfs: make __btrfs_add_free_space take just block group reference
btrfs: change name and type of private member of btrfs_free_space_ctl
fs/btrfs/free-space-cache.c | 115 ++++++++++++++----------------------
fs/btrfs/free-space-cache.h | 8 +--
2 files changed, 48 insertions(+), 75 deletions(-)
--
2.17.1
next reply other threads:[~2021-11-23 12:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-23 12:44 Nikolay Borisov [this message]
2021-11-23 12:44 ` [PATCH 1/4] btrfs: consolidate bitmap_clear_bits/__bitmap_clear_bits Nikolay Borisov
2021-11-23 12:44 ` [PATCH 2/4] btrfs: consolidate unlink_free_space/__unlink_free_space functions Nikolay Borisov
2021-11-23 12:44 ` [PATCH 3/4] btrfs: make __btrfs_add_free_space take just block group reference Nikolay Borisov
2021-11-23 12:44 ` [PATCH 4/4] btrfs: change name and type of private member of btrfs_free_space_ctl Nikolay Borisov
2021-11-23 20:39 ` [PATCH 0/4] Misc freespace cache cleanups 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=20211123124422.5830-1-nborisov@suse.com \
--to=nborisov@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