aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-04-30 18:51:36 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-05-20 16:20:59 -0400
commit54222025f2fe8055fa88c39b5d9f68cbd76b1be0 (patch)
tree957fb400d9b2a2eeff879563ed82f1869840c156 /include/linux
parentbbbc3fb663947764d338c305087322a646298894 (diff)
fscrypt: clean up after fscrypt_prepare_lookup() conversions
Now that all filesystems have been converted to use fscrypt_prepare_lookup(), we can remove the fscrypt_set_d_op() and fscrypt_set_encrypted_dentry() functions as well as un-export fscrypt_d_ops. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fscrypt_notsupp.h10
-rw-r--r--include/linux/fscrypt_supp.h14
2 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/fscrypt_notsupp.h b/include/linux/fscrypt_notsupp.h
index 44b50c04bae9..25b6492de6e5 100644
--- a/include/linux/fscrypt_notsupp.h
+++ b/include/linux/fscrypt_notsupp.h
@@ -64,16 +64,6 @@ static inline void fscrypt_restore_control_page(struct page *page)
64 return; 64 return;
65} 65}
66 66
67static inline void fscrypt_set_d_op(struct dentry *dentry)
68{
69 return;
70}
71
72static inline void fscrypt_set_encrypted_dentry(struct dentry *dentry)
73{
74 return;
75}
76
77/* policy.c */ 67/* policy.c */
78static inline int fscrypt_ioctl_set_policy(struct file *filp, 68static inline int fscrypt_ioctl_set_policy(struct file *filp,
79 const void __user *arg) 69 const void __user *arg)
diff --git a/include/linux/fscrypt_supp.h b/include/linux/fscrypt_supp.h
index 477a7a6504d2..c9c2cc26bc62 100644
--- a/include/linux/fscrypt_supp.h
+++ b/include/linux/fscrypt_supp.h
@@ -74,20 +74,6 @@ static inline struct page *fscrypt_control_page(struct page *page)
74 74
75extern void fscrypt_restore_control_page(struct page *); 75extern void fscrypt_restore_control_page(struct page *);
76 76
77extern const struct dentry_operations fscrypt_d_ops;
78
79static inline void fscrypt_set_d_op(struct dentry *dentry)
80{
81 d_set_d_op(dentry, &fscrypt_d_ops);
82}
83
84static inline void fscrypt_set_encrypted_dentry(struct dentry *dentry)
85{
86 spin_lock(&dentry->d_lock);
87 dentry->d_flags |= DCACHE_ENCRYPTED_WITH_KEY;
88 spin_unlock(&dentry->d_lock);
89}
90
91/* policy.c */ 77/* policy.c */
92extern int fscrypt_ioctl_set_policy(struct file *, const void __user *); 78extern int fscrypt_ioctl_set_policy(struct file *, const void __user *);
93extern int fscrypt_ioctl_get_policy(struct file *, void __user *); 79extern int fscrypt_ioctl_get_policy(struct file *, void __user *);