ext4: Call fsverity_verify_folio()
authorMatthew Wilcox <willy@infradead.org>
Tue, 16 May 2023 19:27:13 +0000 (20:27 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Jun 2023 04:02:10 +0000 (00:02 -0400)
Now that fsverity supports working on entire folios, call
fsverity_verify_folio() instead of fsverity_verify_page()

Reported-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20230516192713.1070469-1-willy@infradead.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/readpage.c

index 6f46823..3e7d160 100644 (file)
@@ -334,7 +334,7 @@ int ext4_mpage_readpages(struct inode *inode,
                                          folio_size(folio));
                        if (first_hole == 0) {
                                if (ext4_need_verity(inode, folio->index) &&
-                                   !fsverity_verify_page(&folio->page))
+                                   !fsverity_verify_folio(folio))
                                        goto set_error_page;
                                folio_mark_uptodate(folio);
                                folio_unlock(folio);