From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 966A3EF586A for ; Sun, 15 Feb 2026 04:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-ID:Date:To:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jKv7JqMPFAwghcdN6FnofRv4wngXxqihkctMcc20tkY=; b=bOeseVO+9m7jc2fI9VbWBXLkeJ MI9Esjh42GwmhJnufUnZ0b09aRX5HakqEWdAqrUgD0EfltEpE25DbW5hC6me3PwiqoIAwF3gyxah6 JCg1z/SF8OJy/GgJxouGjkbK6uh+fvVTbHLzZedxezxh3ijtqhsTcNEylc2+xRjC4zmo=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vrTky-0003Wl-4t; Sun, 15 Feb 2026 04:29:16 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vrTkw-0003We-KY for linux-f2fs-devel@lists.sourceforge.net; Sun, 15 Feb 2026 04:29:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MEBmEJj4Lx77blnAPrNHY8Opz7mlS3KWYXj25KRphmM=; b=Y4m9GlibmMzrX5xJNsdFRVS+DG +/ZULAXLlUDwg14nkM2d+k0mJFcilH7KB9/0+W/stDaQ5TqHoFy1ql43Yut2hpkNtmMDMrmRwyejB jfz/gBoS5kbSi0YGgWPaSPIDYgi6atqbmFX+VuMMECz+hO7Xt2d/ff2QnyJ1XSkRM1OU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MEBmEJj4Lx77blnAPrNHY8Opz7mlS3KWYXj25KRphmM=; b=QsrJ7jBZa//+4ySWnCCwZ7h8tm 8DA3uWpU4zkJxUl0F+VkW8tCIFc2L7BmnwWgONElhMUJGFkAYTd0lOS9dG2EZ+Wy3C3AsD4PHWWec 1Wn7/bzAeMxAwq2yGa1O+gLtbAWEdlvWrivjcDaVS3zig0FDCRH2sRWXQ8i5Tos3FTUM=; Received: from tor.source.kernel.org ([172.105.4.254]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1vrTkw-0008F7-8L for linux-f2fs-devel@lists.sourceforge.net; Sun, 15 Feb 2026 04:29:14 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 8184D6011F; Sun, 15 Feb 2026 04:29:03 +0000 (UTC) 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== To: fsverity@lists.linux.dev 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> MIME-Version: 1.0 X-Headers-End: 1vrTkw-0008F7-8L Subject: [f2fs-dev] [PATCH v3 1/2] f2fs: make f2fs_verify_cluster() partially large-folio-aware X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eric Biggers via Linux-f2fs-devel Reply-To: Eric Biggers Cc: Matthew Wilcox , linux-f2fs-devel@lists.sourceforge.net, Eric Biggers , linux-fsdevel@vger.kernel.org, Jaegeuk Kim , Linus Torvalds Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel