]> git.karo-electronics.de Git - linux-beck.git/commit
btrfs: extend balance filter usage to take minimum and maximum
authorDavid Sterba <dsterba@suse.com>
Tue, 20 Oct 2015 16:22:13 +0000 (18:22 +0200)
committerChris Mason <clm@fb.com>
Tue, 27 Oct 2015 02:38:30 +0000 (19:38 -0700)
commitbc3094673f22d00794a8606200788e411b4ec80d
treea90e4834e26e4e69339a100d1489bcc3159e06d8
parentdee32d0ac3719ef8d640efaf0884111df444730f
btrfs: extend balance filter usage to take minimum and maximum

Similar to the 'limit' filter, we can enhance the 'usage' filter to
accept a range. The change is backward compatible, the range is applied
only in connection with the BTRFS_BALANCE_ARGS_USAGE_RANGE flag.

We don't have a usecase yet, the current syntax has been sufficient. The
enhancement should provide parity with other range-like filters.

Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/volumes.c
fs/btrfs/volumes.h
include/uapi/linux/btrfs.h