Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8034764rwb; Wed, 23 Nov 2022 14:32:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf7NKKWXDOjpX65JjdFeLogchx1k3lYTs3cXZccgLFsce36HA0sAFwHlgT9Ng49bf76u6PYB X-Received: by 2002:a63:d009:0:b0:477:173c:7c9e with SMTP id z9-20020a63d009000000b00477173c7c9emr9498987pgf.94.1669242732774; Wed, 23 Nov 2022 14:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669242732; cv=none; d=google.com; s=arc-20160816; b=0vX5R4Z3GTg/uIlDlf48zJ1nJfENzeCvs/5pmmJuYeOL0bQh5kh20eBGbGdaaa6uXd I1utLtQb01tQyI1lqhGZ3B+r9bAT6k+YXx550k0nhx1GZ3mnR6UBjgxGHr5ktpOF3znR WbyNzEcoH5bfOIYvA8nAbq8GIyu+wXPdU9mXea5YelgcYWhRL1BUTpVgrgXcsEKl87XO DEmA14779dqfdZn5+rr1KRg0hv88ycZpujItCfU7V+1sXdGhpVtSHR7s3j4eK/Mv9RNk 2lEvjgSqRB4n3c8ZmJLaRWF2UCnBkEAFbysbmwUHN9MSjhb21jHKniG3v94xi9V8wqgw LVMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NA3WIqVeUF8C//K3/M14wm74G2U0UROgiVHBFIEfHR0=; b=jE+O/y4kn0jd3YXdF5eqdEmTpQ7yV6KIRXwSgVvY3F0qFiewWeUgJIeiwgT+SeaIgj vRy9pmHck575RetHCk+zRcW6w0fOyU+e5fFBkf/dp8RpOnZwLEW8e9MMCGPozEyqhD1r PZJRcdLVtsHWNK+xnqa25jLaHK/5U7sjKZBdilqmklYkz9HrvWkdcEPVI/Jh7EDOv5mi dewoLpkAmCUEJwdZfpSTf5klKmjdHhrDCgK6TesDRTwcwTUKSq2j68kyjrRwEyjcmtD2 77RS1i9SiWsYicgOuU1li4zfA0sRHfgYGURJiVFXefv8SUysds1rAM2pOqSHf+Ki28Uh srDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cfWEMTHS; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pl18-20020a17090b269200b001f06a6fdb2fsi2900220pjb.27.2022.11.23.14.31.53; Wed, 23 Nov 2022 14:32:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cfWEMTHS; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229456AbiKWWTf (ORCPT + 99 others); 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: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@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