diff options
author | Eric Biggers <ebiggers@google.com> | 2018-01-05 21:44:52 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-01-12 06:06:17 +0300 |
commit | 3d463f28564618805713658c6aeb786fa23f420b (patch) | |
tree | b6d983e16b740a065fcafb6f8f0a51f86f74e9ba /include/linux/fscrypt_notsupp.h | |
parent | 1291a0d5049dbc06baaaf66a9ff3f53db493b19b (diff) | |
download | linux-3d463f28564618805713658c6aeb786fa23f420b.tar.xz |
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_notsupp.h')
-rw-r--r-- | include/linux/fscrypt_notsupp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fscrypt_notsupp.h b/include/linux/fscrypt_notsupp.h index 63e58808519a..52e330285457 100644 --- a/include/linux/fscrypt_notsupp.h +++ b/include/linux/fscrypt_notsupp.h @@ -14,6 +14,11 @@ #ifndef _LINUX_FSCRYPT_NOTSUPP_H #define _LINUX_FSCRYPT_NOTSUPP_H +static inline bool fscrypt_has_encryption_key(const struct inode *inode) +{ + return false; +} + /* crypto.c */ static inline struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *inode, gfp_t gfp_flags) |