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>
This commit is contained in:
parent
39b1444906
commit
fb10231825
4 changed files with 1 additions and 25 deletions
|
@ -359,7 +359,6 @@ static int fscrypt_d_revalidate(struct dentry *dentry, unsigned int flags)
|
||||||
const struct dentry_operations fscrypt_d_ops = {
|
const struct dentry_operations fscrypt_d_ops = {
|
||||||
.d_revalidate = fscrypt_d_revalidate,
|
.d_revalidate = fscrypt_d_revalidate,
|
||||||
};
|
};
|
||||||
EXPORT_SYMBOL(fscrypt_d_ops);
|
|
||||||
|
|
||||||
void fscrypt_restore_control_page(struct page *page)
|
void fscrypt_restore_control_page(struct page *page)
|
||||||
{
|
{
|
||||||
|
|
|
@ -115,6 +115,7 @@ extern int fscrypt_do_page_crypto(const struct inode *inode,
|
||||||
gfp_t gfp_flags);
|
gfp_t gfp_flags);
|
||||||
extern struct page *fscrypt_alloc_bounce_page(struct fscrypt_ctx *ctx,
|
extern struct page *fscrypt_alloc_bounce_page(struct fscrypt_ctx *ctx,
|
||||||
gfp_t gfp_flags);
|
gfp_t gfp_flags);
|
||||||
|
extern const struct dentry_operations fscrypt_d_ops;
|
||||||
|
|
||||||
/* fname.c */
|
/* fname.c */
|
||||||
extern int fname_encrypt(struct inode *inode, const struct qstr *iname,
|
extern int fname_encrypt(struct inode *inode, const struct qstr *iname,
|
||||||
|
|
|
@ -67,16 +67,6 @@ static inline void fscrypt_restore_control_page(struct page *page)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void fscrypt_set_d_op(struct dentry *dentry)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void fscrypt_set_encrypted_dentry(struct dentry *dentry)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* policy.c */
|
/* policy.c */
|
||||||
static inline int fscrypt_ioctl_set_policy(struct file *filp,
|
static inline int fscrypt_ioctl_set_policy(struct file *filp,
|
||||||
const void __user *arg)
|
const void __user *arg)
|
||||||
|
|
|
@ -74,20 +74,6 @@ static inline struct page *fscrypt_control_page(struct page *page)
|
||||||
|
|
||||||
extern void fscrypt_restore_control_page(struct 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 */
|
/* policy.c */
|
||||||
extern int fscrypt_ioctl_set_policy(struct file *, const void __user *);
|
extern int fscrypt_ioctl_set_policy(struct file *, const void __user *);
|
||||||
extern int fscrypt_ioctl_get_policy(struct file *, void __user *);
|
extern int fscrypt_ioctl_get_policy(struct file *, void __user *);
|
||||||
|
|
Loading…
Add table
Reference in a new issue