diff options
| author | Jiri Kosina <[email protected]> | 2020-04-01 12:26:12 +0200 | 
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2020-04-01 12:26:12 +0200 | 
| commit | c9f289701540baeef9ac7c9977d67a7259f404db (patch) | |
| tree | ac3c29d41da02ac735c9a12da78905842fbccd2f /include/linux/fsverity.h | |
| parent | 0aac6f9aaae5fba08963651d2ce49930145e118f (diff) | |
| parent | 910a7e89cec65efad254c947ce2bf8bf5b370962 (diff) | |
Merge branch 'for-5.7/appleir' into for-linus
- small code cleanups in hid-appleir from Lucas Tanure
Diffstat (limited to 'include/linux/fsverity.h')
| -rw-r--r-- | include/linux/fsverity.h | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/include/linux/fsverity.h b/include/linux/fsverity.h index 3b6b8ccebe7d..ecc604e61d61 100644 --- a/include/linux/fsverity.h +++ b/include/linux/fsverity.h @@ -77,6 +77,10 @@ struct fsverity_operations {  	 *  	 * @inode: the inode  	 * @index: 0-based index of the page within the Merkle tree +	 * @num_ra_pages: The number of Merkle tree pages that should be +	 *		  prefetched starting at @index if the page at @index +	 *		  isn't already cached.  Implementations may ignore this +	 *		  argument; it's only a performance optimization.  	 *  	 * This can be called at any time on an open verity file, as well as  	 * between ->begin_enable_verity() and ->end_enable_verity().  It may be @@ -87,7 +91,8 @@ struct fsverity_operations {  	 * Return: the page on success, ERR_PTR() on failure  	 */  	struct page *(*read_merkle_tree_page)(struct inode *inode, -					      pgoff_t index); +					      pgoff_t index, +					      unsigned long num_ra_pages);  	/**  	 * Write a Merkle tree block to the given inode. |