projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9337050
)
btrfs: prop: use common helper for type to string conversion
author
David Sterba
<dsterba@suse.com>
Tue, 31 Oct 2017 16:55:14 +0000
(17:55 +0100)
committer
David Sterba
<dsterba@suse.com>
Mon, 22 Jan 2018 15:08:16 +0000
(16:08 +0100)
Use the helper for conversion, keep the semantics.
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/props.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/props.c
b/fs/btrfs/props.c
index c39a940d0c75cc330abbecae256fbea8096a164b..b30a056963ab91a5f110d0a034bd5bd81adeb9f1 100644
(file)
--- 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;