• Home
  • Raw
  • Download

Lines Matching refs:inode

84 	int (*get_context)(struct inode *inode, void *ctx, size_t len);
102 int (*set_context)(struct inode *inode, const void *ctx, size_t len,
119 bool (*empty_dir)(struct inode *inode);
180 static inline struct fscrypt_info *fscrypt_get_info(const struct inode *inode) in fscrypt_get_info() argument
188 return smp_load_acquire(&inode->i_crypt_info); in fscrypt_get_info()
202 static inline bool fscrypt_needs_contents_encryption(const struct inode *inode) in fscrypt_needs_contents_encryption() argument
204 return IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode); in fscrypt_needs_contents_encryption()
255 int fscrypt_encrypt_block_inplace(const struct inode *inode, struct page *page,
261 int fscrypt_decrypt_block_inplace(const struct inode *inode, struct page *page,
282 int fscrypt_has_permitted_context(struct inode *parent, struct inode *child);
283 int fscrypt_set_context(struct inode *inode, void *fs_data);
308 int fscrypt_prepare_new_inode(struct inode *dir, struct inode *inode,
310 void fscrypt_put_encryption_info(struct inode *inode);
311 void fscrypt_free_inode(struct inode *inode);
312 int fscrypt_drop_inode(struct inode *inode);
315 int fscrypt_setup_filename(struct inode *inode, const struct qstr *iname,
326 int fscrypt_fname_disk_to_usr(const struct inode *inode,
332 u64 fscrypt_fname_siphash(const struct inode *dir, const struct qstr *name);
337 int fscrypt_zeroout_range(const struct inode *inode, pgoff_t lblk,
341 int fscrypt_file_open(struct inode *inode, struct file *filp);
342 int __fscrypt_prepare_link(struct inode *inode, struct inode *dir,
344 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
345 struct inode *new_dir, struct dentry *new_dentry,
347 int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry,
349 int __fscrypt_prepare_readdir(struct inode *dir);
351 int fscrypt_prepare_setflags(struct inode *inode,
353 int fscrypt_prepare_symlink(struct inode *dir, const char *target,
356 int __fscrypt_encrypt_symlink(struct inode *inode, const char *target,
358 const char *fscrypt_get_symlink(struct inode *inode, const void *caddr,
369 static inline struct fscrypt_info *fscrypt_get_info(const struct inode *inode) in fscrypt_get_info() argument
374 static inline bool fscrypt_needs_contents_encryption(const struct inode *inode) in fscrypt_needs_contents_encryption() argument
401 static inline int fscrypt_encrypt_block_inplace(const struct inode *inode, in fscrypt_encrypt_block_inplace() argument
417 static inline int fscrypt_decrypt_block_inplace(const struct inode *inode, in fscrypt_decrypt_block_inplace() argument
463 static inline int fscrypt_has_permitted_context(struct inode *parent, in fscrypt_has_permitted_context()
464 struct inode *child) in fscrypt_has_permitted_context()
469 static inline int fscrypt_set_context(struct inode *inode, void *fs_data) in fscrypt_set_context() argument
517 static inline int fscrypt_prepare_new_inode(struct inode *dir, in fscrypt_prepare_new_inode()
518 struct inode *inode, in fscrypt_prepare_new_inode() argument
526 static inline void fscrypt_put_encryption_info(struct inode *inode) in fscrypt_put_encryption_info() argument
531 static inline void fscrypt_free_inode(struct inode *inode) in fscrypt_free_inode() argument
535 static inline int fscrypt_drop_inode(struct inode *inode) in fscrypt_drop_inode() argument
541 static inline int fscrypt_setup_filename(struct inode *dir, in fscrypt_setup_filename()
571 static inline int fscrypt_fname_disk_to_usr(const struct inode *inode, in fscrypt_fname_disk_to_usr() argument
588 static inline u64 fscrypt_fname_siphash(const struct inode *dir, in fscrypt_fname_siphash()
606 static inline int fscrypt_zeroout_range(const struct inode *inode, pgoff_t lblk, in fscrypt_zeroout_range() argument
614 static inline int fscrypt_file_open(struct inode *inode, struct file *filp) in fscrypt_file_open() argument
616 if (IS_ENCRYPTED(inode)) in fscrypt_file_open()
621 static inline int __fscrypt_prepare_link(struct inode *inode, struct inode *dir, in __fscrypt_prepare_link() argument
627 static inline int __fscrypt_prepare_rename(struct inode *old_dir, in __fscrypt_prepare_rename()
629 struct inode *new_dir, in __fscrypt_prepare_rename()
636 static inline int __fscrypt_prepare_lookup(struct inode *dir, in __fscrypt_prepare_lookup()
643 static inline int __fscrypt_prepare_readdir(struct inode *dir) in __fscrypt_prepare_readdir()
654 static inline int fscrypt_prepare_setflags(struct inode *inode, in fscrypt_prepare_setflags() argument
661 static inline int fscrypt_prepare_symlink(struct inode *dir, in fscrypt_prepare_symlink()
676 static inline int __fscrypt_encrypt_symlink(struct inode *inode, in __fscrypt_encrypt_symlink() argument
684 static inline const char *fscrypt_get_symlink(struct inode *inode, in fscrypt_get_symlink() argument
708 bool __fscrypt_inode_uses_inline_crypto(const struct inode *inode);
711 const struct inode *inode, u64 first_lblk,
718 bool fscrypt_mergeable_bio(struct bio *bio, const struct inode *inode,
726 u64 fscrypt_limit_io_blocks(const struct inode *inode, u64 lblk, u64 nr_blocks);
730 static inline bool __fscrypt_inode_uses_inline_crypto(const struct inode *inode) in __fscrypt_inode_uses_inline_crypto() argument
736 const struct inode *inode, in fscrypt_set_bio_crypt_ctx() argument
745 const struct inode *inode, in fscrypt_mergeable_bio() argument
760 const struct inode *inode = file_inode(iocb->ki_filp); in fscrypt_dio_supported() local
762 return !fscrypt_needs_contents_encryption(inode); in fscrypt_dio_supported()
765 static inline u64 fscrypt_limit_io_blocks(const struct inode *inode, u64 lblk, in fscrypt_limit_io_blocks() argument
774 fscrypt_inode_should_skip_dm_default_key(const struct inode *inode) in fscrypt_inode_should_skip_dm_default_key() argument
776 return IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode); in fscrypt_inode_should_skip_dm_default_key()
780 fscrypt_inode_should_skip_dm_default_key(const struct inode *inode) in fscrypt_inode_should_skip_dm_default_key() argument
795 static inline bool fscrypt_inode_uses_inline_crypto(const struct inode *inode) in fscrypt_inode_uses_inline_crypto() argument
797 return fscrypt_needs_contents_encryption(inode) && in fscrypt_inode_uses_inline_crypto()
798 __fscrypt_inode_uses_inline_crypto(inode); in fscrypt_inode_uses_inline_crypto()
810 static inline bool fscrypt_inode_uses_fs_layer_crypto(const struct inode *inode) in fscrypt_inode_uses_fs_layer_crypto() argument
812 return fscrypt_needs_contents_encryption(inode) && in fscrypt_inode_uses_fs_layer_crypto()
813 !__fscrypt_inode_uses_inline_crypto(inode); in fscrypt_inode_uses_fs_layer_crypto()
825 static inline bool fscrypt_has_encryption_key(const struct inode *inode) in fscrypt_has_encryption_key() argument
827 return fscrypt_get_info(inode) != NULL; in fscrypt_has_encryption_key()
849 struct inode *dir, in fscrypt_prepare_link()
879 static inline int fscrypt_prepare_rename(struct inode *old_dir, in fscrypt_prepare_rename()
881 struct inode *new_dir, in fscrypt_prepare_rename()
914 static inline int fscrypt_prepare_lookup(struct inode *dir, in fscrypt_prepare_lookup()
941 static inline int fscrypt_prepare_readdir(struct inode *dir) in fscrypt_prepare_readdir()
989 static inline int fscrypt_encrypt_symlink(struct inode *inode, in fscrypt_encrypt_symlink() argument
994 if (IS_ENCRYPTED(inode)) in fscrypt_encrypt_symlink()
995 return __fscrypt_encrypt_symlink(inode, target, len, disk_link); in fscrypt_encrypt_symlink()