|
@@ -11,6 +11,21 @@
|
|
#ifndef _LINUX_FSCRYPT_SUPP_H
|
|
#ifndef _LINUX_FSCRYPT_SUPP_H
|
|
#define _LINUX_FSCRYPT_SUPP_H
|
|
#define _LINUX_FSCRYPT_SUPP_H
|
|
|
|
|
|
|
|
+struct fscrypt_ctx {
|
|
|
|
+ union {
|
|
|
|
+ struct {
|
|
|
|
+ struct page *bounce_page; /* Ciphertext page */
|
|
|
|
+ struct page *control_page; /* Original page */
|
|
|
|
+ } w;
|
|
|
|
+ struct {
|
|
|
|
+ struct bio *bio;
|
|
|
|
+ struct work_struct work;
|
|
|
|
+ } r;
|
|
|
|
+ struct list_head free_list; /* Free list */
|
|
|
|
+ };
|
|
|
|
+ u8 flags; /* Flags */
|
|
|
|
+};
|
|
|
|
+
|
|
static inline bool fscrypt_has_encryption_key(const struct inode *inode)
|
|
static inline bool fscrypt_has_encryption_key(const struct inode *inode)
|
|
{
|
|
{
|
|
return (inode->i_crypt_info != NULL);
|
|
return (inode->i_crypt_info != NULL);
|