|
@@ -74,20 +74,6 @@ static inline struct page *fscrypt_control_page(struct page *page)
|
|
|
|
|
|
extern void fscrypt_restore_control_page(struct page *);
|
|
|
|
|
|
-extern const struct dentry_operations fscrypt_d_ops;
|
|
|
-
|
|
|
-static inline void fscrypt_set_d_op(struct dentry *dentry)
|
|
|
-{
|
|
|
- d_set_d_op(dentry, &fscrypt_d_ops);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void fscrypt_set_encrypted_dentry(struct dentry *dentry)
|
|
|
-{
|
|
|
- spin_lock(&dentry->d_lock);
|
|
|
- dentry->d_flags |= DCACHE_ENCRYPTED_WITH_KEY;
|
|
|
- spin_unlock(&dentry->d_lock);
|
|
|
-}
|
|
|
-
|
|
|
/* policy.c */
|
|
|
extern int fscrypt_ioctl_set_policy(struct file *, const void __user *);
|
|
|
extern int fscrypt_ioctl_get_policy(struct file *, void __user *);
|