Lines Matching defs:inode

57 	 * verity descriptor to a fs-specific location associated with the inode
58 * and do any fs-specific actions needed to mark the inode as a verity
59 * inode, e.g. setting a bit in the on-disk inode. The filesystem is
60 * also responsible for setting the S_VERITY flag in the VFS inode.
71 * Get the verity descriptor of the given inode.
73 * @inode: an inode with the S_VERITY flag set
80 * called by multiple processes concurrently on the same inode.
84 int (*get_verity_descriptor)(struct inode *inode, void *buf,
88 * Read a Merkle tree page of the given inode.
90 * @inode: the inode
104 struct page *(*read_merkle_tree_page)(struct inode *inode,
109 * Write a Merkle tree block to the given inode.
111 * @inode: the inode for which the Merkle tree is being built
121 int (*write_merkle_tree_block)(struct inode *inode, const void *buf,
127 static inline struct fsverity_info *fsverity_get_info(const struct inode *inode)
135 return smp_load_acquire(&inode->i_verity_info);
145 int fsverity_get_digest(struct inode *inode,
151 int __fsverity_file_open(struct inode *inode, struct file *filp);
153 void __fsverity_cleanup_inode(struct inode *inode);
156 * fsverity_cleanup_inode() - free the inode's verity info, if present
157 * @inode: an inode being evicted
159 * Filesystems must call this on inode eviction to free ->i_verity_info.
161 static inline void fsverity_cleanup_inode(struct inode *inode)
163 if (inode->i_verity_info)
164 __fsverity_cleanup_inode(inode);
179 static inline struct fsverity_info *fsverity_get_info(const struct inode *inode)
199 static inline int fsverity_get_digest(struct inode *inode,
212 static inline int __fsverity_file_open(struct inode *inode, struct file *filp)
223 static inline void fsverity_cleanup_inode(struct inode *inode)
267 * fsverity_active() - do reads from the inode need to go through fs-verity?
268 * @inode: inode to check
279 static inline bool fsverity_active(const struct inode *inode)
281 return fsverity_get_info(inode) != NULL;
286 * @inode: the inode being opened
290 * set up the inode's ->i_verity_info if not already done.
297 static inline int fsverity_file_open(struct inode *inode, struct file *filp)
299 if (IS_VERITY(inode))
300 return __fsverity_file_open(inode, filp);
305 * fsverity_prepare_setattr() - prepare to change a verity inode's attributes
306 * @dentry: dentry through which the inode is being changed