|
40 | 40 | #include <linux/compat.h> |
41 | 41 | #endif |
42 | 42 |
|
43 | | -#define __FS_HAS_ENCRYPTION IS_ENABLED(CONFIG_EXT4_FS_ENCRYPTION) |
44 | 43 | #include <linux/fscrypt.h> |
45 | 44 |
|
46 | 45 | #include <linux/compiler.h> |
@@ -1326,7 +1325,7 @@ struct ext4_super_block { |
1326 | 1325 | #define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */ |
1327 | 1326 | #define EXT4_MF_TEST_DUMMY_ENCRYPTION 0x0004 |
1328 | 1327 |
|
1329 | | -#ifdef CONFIG_EXT4_FS_ENCRYPTION |
| 1328 | +#ifdef CONFIG_FS_ENCRYPTION |
1330 | 1329 | #define DUMMY_ENCRYPTION_ENABLED(sbi) (unlikely((sbi)->s_mount_flags & \ |
1331 | 1330 | EXT4_MF_TEST_DUMMY_ENCRYPTION)) |
1332 | 1331 | #else |
@@ -2051,7 +2050,7 @@ struct ext4_filename { |
2051 | 2050 | const struct qstr *usr_fname; |
2052 | 2051 | struct fscrypt_str disk_name; |
2053 | 2052 | struct dx_hash_info hinfo; |
2054 | | -#ifdef CONFIG_EXT4_FS_ENCRYPTION |
| 2053 | +#ifdef CONFIG_FS_ENCRYPTION |
2055 | 2054 | struct fscrypt_str crypto_buf; |
2056 | 2055 | #endif |
2057 | 2056 | }; |
@@ -2279,7 +2278,7 @@ extern unsigned ext4_free_clusters_after_init(struct super_block *sb, |
2279 | 2278 | struct ext4_group_desc *gdp); |
2280 | 2279 | ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); |
2281 | 2280 |
|
2282 | | -#ifdef CONFIG_EXT4_FS_ENCRYPTION |
| 2281 | +#ifdef CONFIG_FS_ENCRYPTION |
2283 | 2282 | static inline int ext4_fname_setup_filename(struct inode *dir, |
2284 | 2283 | const struct qstr *iname, |
2285 | 2284 | int lookup, struct ext4_filename *fname) |
|
0 commit comments