diff options
| author | Eric Biggers <ebiggers@google.com> | 2018-01-05 13:44:52 -0500 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2018-01-11 22:06:17 -0500 |
| commit | 3d463f28564618805713658c6aeb786fa23f420b (patch) | |
| tree | b6d983e16b740a065fcafb6f8f0a51f86f74e9ba /include/linux/fscrypt_supp.h | |
| parent | 1291a0d5049dbc06baaaf66a9ff3f53db493b19b (diff) | |
fscrypt: move fscrypt_has_encryption_key() to supp/notsupp headers
fscrypt_has_encryption_key() is already split into two versions
depending on whether the filesystem is being built with encryption
support or not. Move them into the appropriate headers.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux/fscrypt_supp.h')
| -rw-r--r-- | include/linux/fscrypt_supp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fscrypt_supp.h b/include/linux/fscrypt_supp.h index cf9e9fc02f0a..79bb8beae018 100644 --- a/include/linux/fscrypt_supp.h +++ b/include/linux/fscrypt_supp.h | |||
| @@ -11,6 +11,11 @@ | |||
| 11 | #ifndef _LINUX_FSCRYPT_SUPP_H | 11 | #ifndef _LINUX_FSCRYPT_SUPP_H |
| 12 | #define _LINUX_FSCRYPT_SUPP_H | 12 | #define _LINUX_FSCRYPT_SUPP_H |
| 13 | 13 | ||
| 14 | static inline bool fscrypt_has_encryption_key(const struct inode *inode) | ||
| 15 | { | ||
| 16 | return (inode->i_crypt_info != NULL); | ||
| 17 | } | ||
| 18 | |||
| 14 | /* crypto.c */ | 19 | /* crypto.c */ |
| 15 | extern struct kmem_cache *fscrypt_info_cachep; | 20 | extern struct kmem_cache *fscrypt_info_cachep; |
| 16 | extern struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *, gfp_t); | 21 | extern struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *, gfp_t); |
