Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fsverity: remove fsverity_verify_page()

Now that fsverity_verify_page() has no callers, remove it.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20260218010630.7407-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

+2 -8
+2 -2
fs/verity/verify.c
··· 433 433 * This is a helper function for use by the ->readahead() method of filesystems 434 434 * that issue bios to read data directly into the page cache. Filesystems that 435 435 * populate the page cache without issuing bios (e.g. non block-based 436 - * filesystems) must instead call fsverity_verify_page() directly on each page. 437 - * All filesystems must also call fsverity_verify_page() on holes. 436 + * filesystems) must instead call fsverity_verify_blocks() directly. All 437 + * filesystems must also call fsverity_verify_blocks() on holes. 438 438 */ 439 439 void fsverity_verify_bio(struct fsverity_info *vi, struct bio *bio) 440 440 {
-6
include/linux/fsverity.h
··· 282 282 return fsverity_verify_blocks(vi, folio, folio_size(folio), 0); 283 283 } 284 284 285 - static inline bool fsverity_verify_page(struct fsverity_info *vi, 286 - struct page *page) 287 - { 288 - return fsverity_verify_blocks(vi, page_folio(page), PAGE_SIZE, 0); 289 - } 290 - 291 285 /** 292 286 * fsverity_file_open() - prepare to open a verity file 293 287 * @inode: the inode being opened