summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorChandan Rajendra <chandan@linux.vnet.ibm.com>2018-12-12 04:50:12 -0500
committerTheodore Ts'o <tytso@mit.edu>2019-01-23 23:56:43 -0500
commit643fa9612bf1a29153eee46fd398117632f93cbe (patch)
treecdab043a388581eadf969671e33c440b4c6f36b1 /fs/ext4/ext4.h
parent62230e0d702f613e2f93e9c3ffd2893b36eff2db (diff)
fscrypt: remove filesystem specific build config option
In order to have a common code base for fscrypt "post read" processing for all filesystems which support encryption, this commit removes filesystem specific build config option (e.g. CONFIG_EXT4_FS_ENCRYPTION) and replaces it with a build option (i.e. CONFIG_FS_ENCRYPTION) whose value affects all the filesystems making use of fscrypt. Reviewed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index afdb9ad8be0e..5012ddb6daf9 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -40,7 +40,6 @@
40#include <linux/compat.h> 40#include <linux/compat.h>
41#endif 41#endif
42 42
43#define __FS_HAS_ENCRYPTION IS_ENABLED(CONFIG_EXT4_FS_ENCRYPTION)
44#include <linux/fscrypt.h> 43#include <linux/fscrypt.h>
45 44
46#include <linux/compiler.h> 45#include <linux/compiler.h>
@@ -1326,7 +1325,7 @@ struct ext4_super_block {
1326#define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */ 1325#define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */
1327#define EXT4_MF_TEST_DUMMY_ENCRYPTION 0x0004 1326#define EXT4_MF_TEST_DUMMY_ENCRYPTION 0x0004
1328 1327
1329#ifdef CONFIG_EXT4_FS_ENCRYPTION 1328#ifdef CONFIG_FS_ENCRYPTION
1330#define DUMMY_ENCRYPTION_ENABLED(sbi) (unlikely((sbi)->s_mount_flags & \ 1329#define DUMMY_ENCRYPTION_ENABLED(sbi) (unlikely((sbi)->s_mount_flags & \
1331 EXT4_MF_TEST_DUMMY_ENCRYPTION)) 1330 EXT4_MF_TEST_DUMMY_ENCRYPTION))
1332#else 1331#else
@@ -2051,7 +2050,7 @@ struct ext4_filename {
2051 const struct qstr *usr_fname; 2050 const struct qstr *usr_fname;
2052 struct fscrypt_str disk_name; 2051 struct fscrypt_str disk_name;
2053 struct dx_hash_info hinfo; 2052 struct dx_hash_info hinfo;
2054#ifdef CONFIG_EXT4_FS_ENCRYPTION 2053#ifdef CONFIG_FS_ENCRYPTION
2055 struct fscrypt_str crypto_buf; 2054 struct fscrypt_str crypto_buf;
2056#endif 2055#endif
2057}; 2056};
@@ -2279,7 +2278,7 @@ extern unsigned ext4_free_clusters_after_init(struct super_block *sb,
2279 struct ext4_group_desc *gdp); 2278 struct ext4_group_desc *gdp);
2280ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); 2279ext4_fsblk_t ext4_inode_to_goal_block(struct inode *);
2281 2280
2282#ifdef CONFIG_EXT4_FS_ENCRYPTION 2281#ifdef CONFIG_FS_ENCRYPTION
2283static inline int ext4_fname_setup_filename(struct inode *dir, 2282static inline int ext4_fname_setup_filename(struct inode *dir,
2284 const struct qstr *iname, 2283 const struct qstr *iname,
2285 int lookup, struct ext4_filename *fname) 2284 int lookup, struct ext4_filename *fname)