From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5746922A4E9; Sun, 15 Feb 2026 04:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771129743; cv=none; b=CGPRraOHcb56+0282LOICpeUg7MkzgBV3+Mlg0pprN/iNrJGnciM4htPGQRnSaRgvtI0YwYdoJwuTyV35yFDIFW3WzOm6piLK/gujR0W1JRyMrLGm8/dgVUeIxF1/yVza/v/+tNjgu1t4j4hKLaBzmeVUzwciXXdEtSLUok318E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771129743; c=relaxed/simple; bh=qAgmjiPqLWz4roYqGvLmCTQrLya8NjoSHRNC3UUpZH8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RqUSu4AZq8xuSSFrs4WyOZiVtRy5Uy3zrExPq8G3ZvvjbNwwNH8F25YqlcHbIrrGtyT0XZDoFpkFvT2Q/JhZ0u9TW5F3l03N2ncZn82IkVZ5IyOBczS2LVsDevZXuFtZagltzpVhIJBWtuKnjUdrUjqvYhAAnITOYBF/091RoZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rTDwXEVX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rTDwXEVX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECC98C2BC9E; Sun, 15 Feb 2026 04:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771129743; bh=qAgmjiPqLWz4roYqGvLmCTQrLya8NjoSHRNC3UUpZH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rTDwXEVXUzBUOyZJHtDYURGQUM9fHkROmzcEODN5XiBiJEdclruAKOsUJ61trfUMM 9Jq/FMh6nSFUGlvJoeOdOiknvaAkLkuh2tX0RmSNllVA7LBpKMdnoSJfTZuZDN9b8s dZZEp/1LfHV+MgiS9/eL5pN7stbKDvxWJIMlPhH5MO93/kMNnScThbxppyribjYz3Y bEJjrNlSIViG5qlUG/MzBw8WcrhTw5AP8U0b7jNQ2cRkid6bq+2ASxsPyaMRkVJy4c GnVDj5VlNU8CbYKrpWslGJfWvxC8z7sK6PJ8tLDK5hs60aT2d63I1gsOroUCeINJvI wl2I43Yrnj9rA== From: Eric Biggers To: fsverity@lists.linux.dev Cc: linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, Linus Torvalds , Jaegeuk Kim , Chao Yu , Matthew Wilcox , Eric Biggers Subject: [PATCH v3 1/2] f2fs: make f2fs_verify_cluster() partially large-folio-aware Date: Sat, 14 Feb 2026 20:28:05 -0800 Message-ID: <20260215042806.13348-2-ebiggers@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260215042806.13348-1-ebiggers@kernel.org> References: <20260215042806.13348-1-ebiggers@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit f2fs_verify_cluster() is the only remaining caller of the non-large-folio-aware function fsverity_verify_page(). To unblock the removal of that function, change f2fs_verify_cluster() to verify the entire folio of each page and mark it up-to-date. Note that this doesn't actually make f2fs_verify_cluster() large-folio-aware, as it is still passed an array of pages. In addition, remove the unnecessary clearing of the up-to-date flag. It's guaranteed to already be clear. Signed-off-by: Eric Biggers --- fs/f2fs/compress.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index 006a80acd1de..8c76400ba631 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1811,19 +1811,18 @@ static void f2fs_verify_cluster(struct work_struct *work) int i; /* Verify, update, and unlock the decompressed pages. */ for (i = 0; i < dic->cluster_size; i++) { struct page *rpage = dic->rpages[i]; + struct folio *rfolio; if (!rpage) continue; - - if (fsverity_verify_page(dic->vi, rpage)) - SetPageUptodate(rpage); - else - ClearPageUptodate(rpage); - unlock_page(rpage); + rfolio = page_folio(rpage); + if (fsverity_verify_folio(dic->vi, rfolio)) + folio_mark_uptodate(rfolio); + folio_unlock(rfolio); } f2fs_put_dic(dic, true); } -- 2.53.0