Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 802a5c69 authored by David Sterba's avatar David Sterba
Browse files

btrfs: prop: use common helper for type to string conversion



Use the helper for conversion, keep the semantics.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 93370509
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;