]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/volumes.h
Btrfs: soft profile changing mode (aka soft convert)
[karo-tx-linux.git] / fs / btrfs / volumes.h
index 79ee9c324562a90c3739d56744ea2fca5451d759..6c143c98017a950848704595e0d92176e8f0c23c 100644 (file)
@@ -208,7 +208,13 @@ struct map_lookup {
 #define BTRFS_BALANCE_ARGS_DRANGE      (1ULL << 3)
 #define BTRFS_BALANCE_ARGS_VRANGE      (1ULL << 4)
 
+/*
+ * Profile changing flags.  When SOFT is set we won't relocate chunk if
+ * it already has the target profile (even though it may be
+ * half-filled).
+ */
 #define BTRFS_BALANCE_ARGS_CONVERT     (1ULL << 8)
+#define BTRFS_BALANCE_ARGS_SOFT                (1ULL << 9)
 
 struct btrfs_balance_args;
 struct btrfs_balance_control {