summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/props.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-10-31 17:55:14 +0100
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:16 +0100
commit802a5c69584a0e48ab9797e743fb087c7b56a264 (patch)
tree3dfdb899b22e06dfed52ee113a866ab66bc364a0 /fs/btrfs/props.c
parent93370509c24cc41f994d467d145811ba9c9a48f7 (diff)
downloadlinux-802a5c69584a0e48ab9797e743fb087c7b56a264.tar.bz2
btrfs: prop: use common helper for type to string conversion
Use the helper for conversion, keep the semantics. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/props.c')
-rw-r--r--fs/btrfs/props.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c
index c39a940d0c75..b30a056963ab 100644
--- a/fs/btrfs/props.c
+++ b/fs/btrfs/props.c
@@ -423,11 +423,11 @@ static const char *prop_compression_extract(struct inode *inode)
{
switch (BTRFS_I(inode)->prop_compress) {
case BTRFS_COMPRESS_ZLIB:
- return "zlib";
case BTRFS_COMPRESS_LZO:
- return "lzo";
case BTRFS_COMPRESS_ZSTD:
- return "zstd";
+ return btrfs_compress_type2str(BTRFS_I(inode)->prop_compress);
+ default:
+ break;
}
return NULL;