Lines Matching defs:inode
4 static int ubifs_crypt_get_context(struct inode *inode, void *ctx, size_t len)
6 return ubifs_xattr_get(inode, UBIFS_XATTR_NAME_ENCRYPTION_CONTEXT,
10 static int ubifs_crypt_set_context(struct inode *inode, const void *ctx,
15 * operate on a new inode which is not visible to other users
16 * at this point. So, no need to check whether inode is locked.
18 return ubifs_xattr_set(inode, UBIFS_XATTR_NAME_ENCRYPTION_CONTEXT,
22 static bool ubifs_crypt_empty_dir(struct inode *inode)
24 return ubifs_check_dir_empty(inode) == 0;
29 * @inode: inode which refers to the data node
38 int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn,
41 struct ubifs_info *c = inode->i_sb->s_fs_info;
53 err = fscrypt_encrypt_block_inplace(inode, virt_to_page(p), pad_len,
64 int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,
67 struct ubifs_info *c = inode->i_sb->s_fs_info;
78 err = fscrypt_decrypt_block_inplace(inode, virt_to_page(&dn->data),