Skip to contentSkip to conversation

fs: ext4: Support transparent compression

PATCH New Tom Marshall 1 participant 1 message May 29, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 fs: ext4: Support transparent compression

---
 fs/ext4/Makefile |  4 ++++
 fs/ext4/ext4.h   |  4 ++++
 fs/ext4/inode.c  | 41 +++++++++++++++++++++++++++++++++++++++--
 3 files changed, 47 insertions(+), 2 deletions(-)
fs/ext4/Makefile +4 -0
index 75285ea..b6e230a 100644
@@ -14,3 +14,7 @@ ext4-$(CONFIG_EXT4_FS_POSIX_ACL)	+= acl.o
 ext4-$(CONFIG_EXT4_FS_SECURITY)		+= xattr_security.o
 ext4-$(CONFIG_EXT4_FS_ENCRYPTION)	+= crypto_policy.o crypto.o \
 		crypto_key.o crypto_fname.o
+
+ifdef CONFIG_FS_TRANSPARENT_COMPRESSION
+ccflags-y += -DFS_IMPL
+endif
fs/ext4/ext4.h +4 -0
index 9a83f14..88d14f6 100644
@@ -32,6 +32,7 @@
 #include <linux/ratelimit.h>
 #include <crypto/hash.h>
 #include <linux/falloc.h>
+#include <linux/fs-xcomp.h>
 #ifdef __KERNEL__
 #include <linux/compat.h>
 #endif
@@ -957,6 +958,9 @@ struct ext4_inode_info {
 	/* Encryption params */
 	struct ext4_encryption_key i_encryption_key;
 #endif
+#ifdef CONFIG_FS_TRANSPARENT_COMPRESSION
+	struct xcomp_inode_info i_xcomp_info;
+#endif
 };
 
 /*
fs/ext4/inode.c +39 -2

84 lines not on this page · raw message

Signature · 1 line
2.1.4