I'll comment on the overall approach and skip code-specific comments.
The changelog does not explain why there's a need for a new blockgroup
type and what's the relation to the existing types. It seems that it
extends the data/metadata/system group, but I think this is totally
wrong.
The proposed changes modify part of the on-disk format, that would
require a incompat bit and brings the usual load of unpleasant issues
with backward compatibility. The current data structures should be
enough for configurable stripe size. If you want to make stripe size
configurable, then replace all hardcoded values of BTRFS_STRIPE_LEN.
On Fri, Jul 22, 2016 at 09:42:47AM -0400, Sanidhya Solanki wrote:
> --- a/include/trace/events/btrfs.h
> +++ b/include/trace/events/btrfs.h
> + { BTRFS_BLOCK_GROUP_RAID, "RAID"}, \
> #define BTRFS_BALANCE_TYPE_MASK (BTRFS_BALANCE_DATA | \
> + BTRFS_BALANCE_RAID | \
> BTRFS_BALANCE_SYSTEM | \
> BTRFS_BALANCE_METADATA)
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html