Lines Matching refs:inode

57  * fscrypt_context - the encryption context of an inode
171 const struct inode *inode)
173 return policy->log2_data_unit_size ?: inode->i_blkbits;
178 const struct inode *inode)
182 return inode->i_blkbits;
184 return fscrypt_policy_v2_du_bits(&policy->v2, inode);
213 * fscrypt_inode_info - the "encryption key" for an inode
217 * inode is evicted.
229 * True if this inode will use inline encryption (blk-crypto) instead of
248 /* Hashed inode number. Only set for IV_INO_LBLK_32 */
252 * Encryption mode used for this inode. It corresponds to either the
253 * contents or filenames encryption mode, depending on the inode type.
257 /* Back-pointer to the inode */
258 struct inode *ci_inode;
261 * The master key with which this inode was unlocked (decrypted). This
280 * This inode's hash key for filenames. This is a 128-bit SipHash-2-4
286 /* The encryption policy used by this inode */
289 /* This inode's nonce, copied from the fscrypt_context */
309 fscrypt_msg(const struct inode *inode, const char *level, const char *fmt, ...);
311 #define fscrypt_warn(inode, fmt, ...) \
312 fscrypt_msg((inode), KERN_WARNING, fmt, ##__VA_ARGS__)
313 #define fscrypt_err(inode, fmt, ...) \
314 fscrypt_msg((inode), KERN_ERR, fmt, ##__VA_ARGS__)
522 * one active ref for each inode in ->mk_decrypted_inodes.
579 /* Hash key for inode numbers. Initialized only when needed. */
669 int fscrypt_get_encryption_info(struct inode *inode, bool allow_unsupported);
672 * fscrypt_require_key() - require an inode's encryption key
673 * @inode: the inode we need the key for
675 * If the inode is encrypted, set up its encryption key if not already done.
678 * No locks are needed, and the key will live as long as the struct inode --- so
684 static inline int fscrypt_require_key(struct inode *inode)
686 if (IS_ENCRYPTED(inode)) {
687 int err = fscrypt_get_encryption_info(inode, false);
691 if (!fscrypt_has_encryption_key(inode))
715 const struct inode *inode);
719 const union fscrypt_policy *fscrypt_policy_to_inherit(struct inode *dir);