From patchwork Mon Aug 15 23:50:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 12944327 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 9A174C25B0D for ; Tue, 16 Aug 2022 06:11:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbiHPGKb (ORCPT ); Tue, 16 Aug 2022 02:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiHPGKG (ORCPT ); Tue, 16 Aug 2022 02:10:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A3D6A98DD; Mon, 15 Aug 2022 16:51:46 -0700 (PDT) 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 98A8DB8124E; Mon, 15 Aug 2022 23:51:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DC64C433C1; Mon, 15 Aug 2022 23:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660607503; bh=BeW1orVomShlhYcBAjKKGjagqLCAQpws3J+NC4g2hME=; h=From:To:Cc:Subject:Date:From; b=TrivuLOkxHxPfwsnHACeReH/1VdknVQsfy5hmeruzqK4bWYGxj6ofnxdjdaPQoBk8 Fyf0apfS6yA0Asj7sGShx3myy96y6e7HZuPXkUhj35RDznqskOGPGQ8hY78DZeoIba laxy1vqVXP/PzsJUVuub3utAcRA9N/LaDD34DXNCzt7dAF40H4GFcMD0sCOWrragdh QwtncR0MihrPf9P8QbT0tS+pYgHffg3glP/HarbZx4HYpR9rbwYqss7bIVZyDHhCsu ncYFUtKH6GSFhyZn5FarB2HsR2J7yqi9oHQxICIDZsahhnwMsLGbxb+MD97leIDOGM DpYOBENQusP9g== From: Eric Biggers To: linux-fscrypt@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Matthew Wilcox Subject: [PATCH v2 0/2] ext4, f2fs: stop using PG_error for fscrypt and fsverity Date: Mon, 15 Aug 2022 16:50:50 -0700 Message-Id: <20220815235052.86545-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org This series changes ext4 and f2fs to stop using PG_error to track decryption and verity errors. This is a step towards freeing up PG_error for other uses, as discussed at https://lore.kernel.org/linux-fsdevel/Yn10Iz1mJX1Mu1rv@casper.infradead.org Note: due to the interdependencies with fs/crypto/ and fs/verity/, I couldn't split this up into separate patches for each filesystem. I'd appreciate Acks from the ext4 and f2fs maintainers so that I can take these patches. Otherwise I'm not sure how to move them forward. Changed v1 => v2: - Rebased onto v6.0-rc1 and resolved conflicts in f2fs. Eric Biggers (2): fscrypt: stop using PG_error to track error status fsverity: stop using PG_error to track error status fs/crypto/bio.c | 16 +++++++---- fs/ext4/readpage.c | 16 +++++------ fs/f2fs/compress.c | 64 ++++++++++++++++++++--------------------- fs/f2fs/data.c | 64 +++++++++++++++++++++++------------------ fs/verity/verify.c | 12 ++++---- include/linux/fscrypt.h | 5 ++-- 6 files changed, 93 insertions(+), 84 deletions(-) base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868