]> 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)
commit4e131478cdf4e5ef39cfe987ab8159b7e2ed96e4
treef481867c52ea0a6889aead29b254782b23f5e055
parentbf8ee2a2653e3fe9c6385b0915aa885c63e4c548
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