fs: ext4: Support transparent compression
Subsystems (2)
PATCH 3/3 fs: ext4: Support transparent compression
Signed-off-by Tom Marshall <[email protected]>
--- 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
@@ -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
@@ -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