diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2018-12-12 04:50:10 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-01-23 23:56:43 -0500 |
commit | 592ddec7578a33fb6b3e2ba78aed91614bbb30e2 (patch) | |
tree | 21b6aea465ac22643d6cec4796536fecd5d92e89 /fs/ext4/ext4.h | |
parent | 1058ef0dcb7116fc49270131fda3037fddcc6595 (diff) |
ext4: use IS_ENCRYPTED() to check encryption status
This commit removes the ext4 specific ext4_encrypted_inode() and makes
use of the generic IS_ENCRYPTED() macro to check for the encryption
status of an inode.
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.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 185a05d3257e..afdb9ad8be0e 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -2279,11 +2279,6 @@ extern unsigned ext4_free_clusters_after_init(struct super_block *sb, | |||
2279 | struct ext4_group_desc *gdp); | 2279 | struct ext4_group_desc *gdp); |
2280 | ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); | 2280 | ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); |
2281 | 2281 | ||
2282 | static inline bool ext4_encrypted_inode(struct inode *inode) | ||
2283 | { | ||
2284 | return ext4_test_inode_flag(inode, EXT4_INODE_ENCRYPT); | ||
2285 | } | ||
2286 | |||
2287 | #ifdef CONFIG_EXT4_FS_ENCRYPTION | 2282 | #ifdef CONFIG_EXT4_FS_ENCRYPTION |
2288 | static inline int ext4_fname_setup_filename(struct inode *dir, | 2283 | static inline int ext4_fname_setup_filename(struct inode *dir, |
2289 | const struct qstr *iname, | 2284 | const struct qstr *iname, |