From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/3 v3] Balance filters: stripes, enhanced limit and usage
Date: Tue, 20 Oct 2015 19:13:43 +0200 [thread overview]
Message-ID: <cover.1445360598.git.dsterba@suse.com> (raw)
A few more enhancements, I'd like to see all changes to the balance filters
merged into one major release. Thanks.
Changelog (v3):
* I've noticed that we can enhance the 'usage' filter the same way, so do it
to be consistent with the rest
* the flags for all the new filters have been renamed and look more consistent
as well:
BTRFS_BALANCE_ARGS_LIMIT_RANGE
BTRFS_BALANCE_ARGS_STRIPES_RANGE
BTRFS_BALANCE_ARGS_USAGE_RANGE
* Not: the flags mask is not yet updated, this will follow, also the progs
need to be updated accordingly
Changelog (v2):
* the limit_min logic was wrong and did not work, all other filters are locally
applied to the processed chunk, but for the limit_min we need to count all
filters first and then decide if we want to rebalance or not
Update to balance filters, intended for 4.4:
* new 'stripes=<range>' - process only stripes that cross given number of
devices, specified by a range
* updated 'limit=<range>' - previously a single number was accepted, it's a
range so now we can specify a minimum number of chunks to process
There will be more documentation about the use in the btrfs-progs patches, the
kernel side just applies the ranges. The update to 'limit' is backward
compatible, reuses the previous struct member.
Need the v2 btrfs-progs patchset.
Note to merging: there's a missing patch that actuall adds both filter flags
to the mask, however this patch[1] will supposedly be merged to 4.3-rc6.
Current integration is based on 4.3-rc5 so I can't send a branch containing
that without pulling unrelated patches. I'll send the patch independently so
you can decide how to apply it once your first 4.4 pull request gets merged.
[1] btrfs: check unsupported filters in balance arguments
(8eb934591f8bf584969454a658f629cd06e59f3a)
----------------------------------------------------------------
The following changes since commit 049e6dde7e57f0054fdc49102e7ef4830c698b46:
Linux 4.3-rc4 (2015-10-04 16:57:17 +0100)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git dev/balance-filters
for you to fetch changes up to c0b33bea07c4e2ae6d4d9ed56b968e7c09b933c4:
btrfs: extend balance filter usage to take minimum and maximum (2015-10-20 18:58:49 +0200)
----------------------------------------------------------------
David Sterba (2):
btrfs: extend balance filter limit to take minimum and maximum
btrfs: extend balance filter usage to take minimum and maximum
Gabríel Arthúr Pétursson (1):
btrfs: add balance filter for stripes
fs/btrfs/ctree.h | 37 +++++++++++++---
fs/btrfs/volumes.c | 102 ++++++++++++++++++++++++++++++++++++++++++++-
fs/btrfs/volumes.h | 3 ++
include/uapi/linux/btrfs.h | 31 ++++++++++++--
4 files changed, 164 insertions(+), 9 deletions(-)
next reply other threads:[~2015-10-20 17:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 17:13 David Sterba [this message]
2015-10-20 17:13 ` [PATCH 1/3] btrfs: extend balance filter limit to take minimum and maximum David Sterba
2015-10-20 17:13 ` [PATCH 2/3] btrfs: add balance filter for stripes David Sterba
2016-01-14 16:02 ` Christian Rohmann
2016-01-15 17:40 ` David Sterba
2015-10-20 17:13 ` [PATCH 3/3] btrfs: extend balance filter usage to take minimum and maximum 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.1445360598.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).