diff options
| author | Eric Biggers <ebiggers@google.com> | 2018-01-05 13:44:53 -0500 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2018-01-11 22:06:18 -0500 |
| commit | 4fd4b15ccbc79d512ad7982fc1a7ecd34703398f (patch) | |
| tree | 3aef31f51bda93d17d617c4a3cff23b52cecf176 /include/linux/fscrypt_supp.h | |
| parent | 3d463f28564618805713658c6aeb786fa23f420b (diff) | |
fscrypt: move fscrypt_control_page() to supp/notsupp headers
fscrypt_control_page() 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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fscrypt_supp.h b/include/linux/fscrypt_supp.h index 79bb8beae018..ad40780d4653 100644 --- a/include/linux/fscrypt_supp.h +++ b/include/linux/fscrypt_supp.h | |||
| @@ -25,6 +25,12 @@ extern struct page *fscrypt_encrypt_page(const struct inode *, struct page *, | |||
| 25 | u64, gfp_t); | 25 | u64, gfp_t); |
| 26 | extern int fscrypt_decrypt_page(const struct inode *, struct page *, unsigned int, | 26 | extern int fscrypt_decrypt_page(const struct inode *, struct page *, unsigned int, |
| 27 | unsigned int, u64); | 27 | unsigned int, u64); |
| 28 | |||
| 29 | static inline struct page *fscrypt_control_page(struct page *page) | ||
| 30 | { | ||
| 31 | return ((struct fscrypt_ctx *)page_private(page))->w.control_page; | ||
| 32 | } | ||
| 33 | |||
| 28 | extern void fscrypt_restore_control_page(struct page *); | 34 | extern void fscrypt_restore_control_page(struct page *); |
| 29 | 35 | ||
| 30 | extern const struct dentry_operations fscrypt_d_ops; | 36 | extern const struct dentry_operations fscrypt_d_ops; |
