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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1F2FC4332F for ; Wed, 23 Nov 2022 22:19:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229471AbiKWWTf (ORCPT ); Wed, 23 Nov 2022 17:19:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiKWWTe (ORCPT ); Wed, 23 Nov 2022 17:19:34 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72629114B87; Wed, 23 Nov 2022 14:19:33 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1B8C7B82543; Wed, 23 Nov 2022 22:19:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88EDFC433D6; Wed, 23 Nov 2022 22:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669241970; bh=ZZiwh5s9GrphvhQmAD0il03WldxNsbh9fhgz97VZw4s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cfWEMTHSzfV7pNdYK4NSlbwYxT08YbQL83lw1ZZe2T2w9m6gFY0Z33+VuOEcLDz0L 4DLMAlY7uhO1W/eb3OvFQ2l34uind+Oyc+zx56bOJHbzr5lkF7GWd+z9V7FAa6Hiti 8h+AS0qKCRGcg8cFz+nGlgLWx1hcWOaZDWKe/Bok/8kgFiwiWwIHMpWva7Eaurf0yc inxjU41zPrNJLB8SOv58ttgUH4Wrfc9aTH0xSfVsdL+yeGs2dcPwn6LaaiDtdcKsk8 XAKo1Nvn9KtnhNAIv4HS6U/I9dWxpozPYWEc1JH+9LD9VTDhNWY+aZjLRkMczKQUqW obOmJADBUyqfQ== Date: Wed, 23 Nov 2022 22:19:29 +0000 From: Eric Biggers To: Jaegeuk Kim , Chao Yu Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-fscrypt@vger.kernel.org, Matthew Wilcox , linux-f2fs-devel@lists.sourceforge.net Subject: Re: [PATCH v3] fsverity: stop using PG_error to track error status Message-ID: References: <20221028175807.55495-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org On Thu, Nov 10, 2022 at 12:21:06AM -0800, Eric Biggers wrote: > On Fri, Oct 28, 2022 at 10:58:07AM -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > As a step towards freeing the PG_error flag for other uses, change ext4 > > and f2fs to stop using PG_error to track verity errors. Instead, if a > > verity error occurs, just mark the whole bio as failed. The coarser > > granularity isn't really a problem since it isn't any worse than what > > the block layer provides, and errors from a multi-page readahead aren't > > reported to applications unless a single-page read fails too. > > > > f2fs supports compression, which makes the f2fs changes a bit more > > complicated than desired, but the basic premise still works. > > > > Signed-off-by: Eric Biggers > > --- > > > > In v3, I made a small simplification to the f2fs changes. I'm also only > > sending the fsverity patch now, since the fscrypt one is now upstream. > > > > fs/ext4/readpage.c | 8 ++---- > > fs/f2fs/compress.c | 64 ++++++++++++++++++++++------------------------ > > fs/f2fs/data.c | 48 +++++++++++++++++++--------------- > > fs/verity/verify.c | 12 ++++----- > > 4 files changed, 67 insertions(+), 65 deletions(-) > > I've applied this to the fsverity tree for 6.2. > > Reviews would be greatly appreciated, of course. > Jaegeuk and Chao, can I get a review or ack from one of you? - Eric 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 848A3C4332F for ; Wed, 23 Nov 2022 22:19:40 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1oxy5i-0002pz-Nv; Wed, 23 Nov 2022 22:19:38 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oxy5h-0002pt-7p for linux-f2fs-devel@lists.sourceforge.net; Wed, 23 Nov 2022 22:19:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: 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=NA3WIqVeUF8C//K3/M14wm74G2U0UROgiVHBFIEfHR0=; b=lH5nuomYyKqjUSOuYqdeKvUulJ d50J6bwDcr7pzy1EqhJrgyo2gN5PJM1n4vPTroS8V+j3y88wYjtZTwlsdGWnoD1zgimoJZWQefm4s nxJr5EWcOZJfgg5Eqv9DIlN6qvVrlMwnqVc/T9BIa93fmD7nQ57bMTQn3SRzO1fpSpCs=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding: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=NA3WIqVeUF8C//K3/M14wm74G2U0UROgiVHBFIEfHR0=; b=mOf3iRNA/ZO400MwbwSNQjd7kD xxzZ2u8g902O5AVhQ2jWAhpiDjwBrRrhaNWxBZwOUWykUrelNe8UhyV+QfGciMjuwQL+5ICWSWNzt mggpVa844gc3cCqp97q1YyxIm1msH30NND1mvjSC6o/11JYjK+r/XQQG7rfyNWEp+pZE=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oxy5g-0007mf-LC for linux-f2fs-devel@lists.sourceforge.net; Wed, 23 Nov 2022 22:19:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45E4F61F3C; Wed, 23 Nov 2022 22:19:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88EDFC433D6; Wed, 23 Nov 2022 22:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669241970; bh=ZZiwh5s9GrphvhQmAD0il03WldxNsbh9fhgz97VZw4s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cfWEMTHSzfV7pNdYK4NSlbwYxT08YbQL83lw1ZZe2T2w9m6gFY0Z33+VuOEcLDz0L 4DLMAlY7uhO1W/eb3OvFQ2l34uind+Oyc+zx56bOJHbzr5lkF7GWd+z9V7FAa6Hiti 8h+AS0qKCRGcg8cFz+nGlgLWx1hcWOaZDWKe/Bok/8kgFiwiWwIHMpWva7Eaurf0yc inxjU41zPrNJLB8SOv58ttgUH4Wrfc9aTH0xSfVsdL+yeGs2dcPwn6LaaiDtdcKsk8 XAKo1Nvn9KtnhNAIv4HS6U/I9dWxpozPYWEc1JH+9LD9VTDhNWY+aZjLRkMczKQUqW obOmJADBUyqfQ== Date: Wed, 23 Nov 2022 22:19:29 +0000 From: Eric Biggers To: Jaegeuk Kim , Chao Yu Message-ID: References: <20221028175807.55495-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1oxy5g-0007mf-LC Subject: Re: [f2fs-dev] [PATCH v3] fsverity: stop using PG_error to track error status 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: , Cc: linux-fsdevel@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, Matthew Wilcox , linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Thu, Nov 10, 2022 at 12:21:06AM -0800, Eric Biggers wrote: > On Fri, Oct 28, 2022 at 10:58:07AM -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > As a step towards freeing the PG_error flag for other uses, change ext4 > > and f2fs to stop using PG_error to track verity errors. Instead, if a > > verity error occurs, just mark the whole bio as failed. The coarser > > granularity isn't really a problem since it isn't any worse than what > > the block layer provides, and errors from a multi-page readahead aren't > > reported to applications unless a single-page read fails too. > > > > f2fs supports compression, which makes the f2fs changes a bit more > > complicated than desired, but the basic premise still works. > > > > Signed-off-by: Eric Biggers > > --- > > > > In v3, I made a small simplification to the f2fs changes. I'm also only > > sending the fsverity patch now, since the fscrypt one is now upstream. > > > > fs/ext4/readpage.c | 8 ++---- > > fs/f2fs/compress.c | 64 ++++++++++++++++++++++------------------------ > > fs/f2fs/data.c | 48 +++++++++++++++++++--------------- > > fs/verity/verify.c | 12 ++++----- > > 4 files changed, 67 insertions(+), 65 deletions(-) > > I've applied this to the fsverity tree for 6.2. > > Reviews would be greatly appreciated, of course. > Jaegeuk and Chao, can I get a review or ack from one of you? - Eric _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel