]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: compression: add helper for type to string conversion
authorDavid Sterba <dsterba@suse.com>
Tue, 31 Oct 2017 16:24:26 +0000 (17:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:16 +0000 (16:08 +0100)
commit2589968ece37d38f038e2a4e82728b9cc8489b73
treef481867c52ea0a6889aead29b254782b23f5e055
parent4bf72e3c99e6c74cb71f81cf1a18b8d30dfe6832
btrfs: compression: add helper for type to string conversion

There are several places opencoding this conversion, add a helper now
that we have 3 compression algorithms.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h