aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 71619ef72225..99a2d67f65b7 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2078,6 +2078,19 @@ static inline int ext4_sb_has_crypto(struct super_block *sb)
2078} 2078}
2079#endif 2079#endif
2080 2080
2081/* crypto_key.c */
2082int ext4_generate_encryption_key(struct inode *inode);
2083
2084#ifdef CONFIG_EXT4_FS_ENCRYPTION
2085int ext4_has_encryption_key(struct inode *inode);
2086#else
2087static inline int ext4_has_encryption_key(struct inode *inode)
2088{
2089 return 0;
2090}
2091#endif
2092
2093
2081/* dir.c */ 2094/* dir.c */
2082extern int __ext4_check_dir_entry(const char *, unsigned int, struct inode *, 2095extern int __ext4_check_dir_entry(const char *, unsigned int, struct inode *,
2083 struct file *, 2096 struct file *,