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 96FD4ECAAA1 for ; Tue, 6 Sep 2022 15:09:32 +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 1oVaCh-0006rg-G1; Tue, 06 Sep 2022 15:09:31 +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 1oVaCg-0006rW-7w for linux-f2fs-devel@lists.sourceforge.net; Tue, 06 Sep 2022 15:09:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: 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=XZP+3EbOJx10jvHUkLqeZoJ3tBn3JENVZrwMPwsnljk=; b=QKLojIgaVJQD2dmWIFlmM5OrKQ 3+x376DQyA0//nnDV/cEzXZuU4HkxbOAHbEuRyaUJOlC1YkWH4wmkLkUsxpvnD3l3QBo7UWvvlXyH ORZORUQDocxL16SpznE3UiJyuOSKdXGkPPx7EW+/1BTXjQu7PMmooTS3ASDrcJ5pILmI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: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=XZP+3EbOJx10jvHUkLqeZoJ3tBn3JENVZrwMPwsnljk=; b=Oxd2UuF+C0WiV6/F19oPsnvPqM QW8XwV6d9aQtedtKgSV5i1kV8puRmLg2lX/W+2V5qvcw9AnALDpDFobbhVKRdwsiXj5yYE/RdWar8 oXzxvAgfGsOH2929+xIVYEqLNHB8B1Xexm4xIOlzr8ovB4DX2mUyJ9Q8UnvLIxjfjOTY=; Received: from ams.source.kernel.org ([145.40.68.75]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oVaCf-0004Cz-9x for linux-f2fs-devel@lists.sourceforge.net; Tue, 06 Sep 2022 15:09:30 +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 ams.source.kernel.org (Postfix) with ESMTPS id 11FCFB81908; Tue, 6 Sep 2022 15:09:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61208C433C1; Tue, 6 Sep 2022 15:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662476961; bh=FV91piF4ZeID7mpLQSFqYupHuN+3qDsgWgeUcj/uZOs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dH66mns4W2S8rBp+QMshYQesTvyRgTsnd0LKs9tvmfaBcAQGMtoLDO6l/gSvAmOog of0v+hU65XApnTLjDBTxKlaFu9e9Nb1QCSxhoV6f9GcXUydsrwE82yqsMHLUMvgeRZ ZnHlQybbsPGqifoIXjngWewLR0JGLseuEh6fMOsMpI8XwDV8Ycs7q+oAC9acbqwoLO JH1Dkku/dWpDPvKasN/djexjiGi0v8cTBIpt8wmjmwHWGP/AtSGzhlcj1q0BKJyQ40 gzgRRnVK5uOU5O6yCFx3BQYGfTll1ejQoAHrNUOxNp/+WdTY4+DTJZr9WDEzia+gcI /Bwg11u+LthYg== Message-ID: Date: Tue, 6 Sep 2022 23:09:17 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Content-Language: en-US To: Eric Biggers , linux-fscrypt@vger.kernel.org References: <20220815235052.86545-1-ebiggers@kernel.org> <20220815235052.86545-2-ebiggers@kernel.org> From: Chao Yu In-Reply-To: <20220815235052.86545-2-ebiggers@kernel.org> X-Headers-End: 1oVaCf-0004Cz-9x Subject: Re: [f2fs-dev] [PATCH v2 1/2] fscrypt: 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-ext4@vger.kernel.org, Matthew Wilcox , linux-f2fs-devel@lists.sourceforge.net Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 2022/8/16 7:50, 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 decryption errors. Instead, if > a decryption 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. > > Signed-off-by: Eric Biggers > --- > fs/crypto/bio.c | 16 ++++++++++------ > fs/ext4/readpage.c | 8 +++++--- > fs/f2fs/data.c | 18 ++++++++++-------- > include/linux/fscrypt.h | 5 +++-- > 4 files changed, 28 insertions(+), 19 deletions(-) For f2fs part, Reviewed-by: Chao Yu Thanks, _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel