summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-10-22 10:19:38 +0200
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:01:04 +0100
commit40db5cd7ffcbc4b58d6c82e9ddba01f7e26152ca (patch)
tree5f2b486ae544e16dd9678429f25746234554d09c /volumes.h
parent0826a8ddb90e577c5c359d8bca2571f167029f7e (diff)
btrfs-progs: extend balance args to take min/max usage filter
Add the overlapping usage and [usage_min, usage_max] members to the balance args. The min/max values are interpreted iff the corresponding flag BTRFS_BALANCE_ARGS_USAGE_RANGE is set. The minimum boundary is inclusive, maximum is exclusive: * usage_min <= chunk_usage < usage_max Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.h')
-rw-r--r--volumes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/volumes.h b/volumes.h
index f5064304..c0007adc 100644
--- a/volumes.h
+++ b/volumes.h
@@ -138,6 +138,7 @@ struct map_lookup {
#define BTRFS_BALANCE_ARGS_LIMIT (1ULL << 5)
#define BTRFS_BALANCE_ARGS_LIMIT_RANGE (1ULL << 6)
#define BTRFS_BALANCE_ARGS_STRIPES_RANGE (1ULL << 7)
+#define BTRFS_BALANCE_ARGS_USAGE_RANGE (1ULL << 10)
/*
* Profile changing flags. When SOFT is set we won't relocate chunk if