btrfs: add helper to describe block group flags
authorAnand Jain <anand.jain@oracle.com>
Tue, 20 Nov 2018 08:12:55 +0000 (16:12 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:39 +0000 (14:51 +0100)
commitf89e09cf45533eb25ca8e7fbedec697ecb37eb94
treea34623b823fe40c4539eefbf3cf248ef1cafaa56
parent9a6f209e36500efac51528132a3e3083586eda5f
btrfs: add helper to describe block group flags

Factor out helper that describes block group flags from
describe_relocation. The result will not be longer than the given size.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add comments ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h