btrfs: fix describe_relocation when printing unknown flags
authorAnand Jain <anand.jain@oracle.com>
Thu, 17 May 2018 13:25:12 +0000 (21:25 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:24:11 +0000 (18:24 +0200)
commitb78e2b78a88ce4982294ceb03c1227810e659a7b
treeff4d8d984fb0d295a8276e685d4ce050e4c9094c
parentbf5091c8d69e95c34dab2224b98a9cb0ccff1aa8
btrfs: fix describe_relocation when printing unknown flags

Looks like the original idea was to print the hex of the flags which is
not coded with their flag name. So use the current buf pointer bp
instead of buf.

Reaching the uknown flags should never happen, it's there just in case.

Fixes: ebce0e01b930b ("btrfs: make block group flags in balance printks human-readable")
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c