fsverity: remove fsverity_verify_page()
authorEric Biggers <ebiggers@kernel.org>
Wed, 18 Feb 2026 01:06:30 +0000 (17:06 -0800)
committerEric Biggers <ebiggers@kernel.org>
Wed, 18 Feb 2026 07:11:36 +0000 (23:11 -0800)
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>
fs/verity/verify.c
include/linux/fsverity.h

index 31797f9..3e38749 100644 (file)
@@ -433,8 +433,8 @@ EXPORT_SYMBOL_GPL(fsverity_verify_blocks);
  * This is a helper function for use by the ->readahead() method of filesystems
  * that issue bios to read data directly into the page cache.  Filesystems that
  * populate the page cache without issuing bios (e.g. non block-based
- * filesystems) must instead call fsverity_verify_page() directly on each page.
- * All filesystems must also call fsverity_verify_page() on holes.
+ * filesystems) must instead call fsverity_verify_blocks() directly.  All
+ * filesystems must also call fsverity_verify_blocks() on holes.
  */
 void fsverity_verify_bio(struct fsverity_info *vi, struct bio *bio)
 {
index fed9102..6de3ddf 100644 (file)
@@ -282,12 +282,6 @@ static inline bool fsverity_verify_folio(struct fsverity_info *vi,
        return fsverity_verify_blocks(vi, folio, folio_size(folio), 0);
 }
 
-static inline bool fsverity_verify_page(struct fsverity_info *vi,
-                                       struct page *page)
-{
-       return fsverity_verify_blocks(vi, page_folio(page), PAGE_SIZE, 0);
-}
-
 /**
  * fsverity_file_open() - prepare to open a verity file
  * @inode: the inode being opened