From patchwork Mon Jun 27 06:50:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 12896254 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 407D4CCA482 for ; Mon, 27 Jun 2022 06:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232117AbiF0Gv6 (ORCPT ); Mon, 27 Jun 2022 02:51:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232524AbiF0Gv5 (ORCPT ); Mon, 27 Jun 2022 02:51:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA1262661; Sun, 26 Jun 2022 23:51:56 -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 5C9F8B80ED9; Mon, 27 Jun 2022 06:51:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C17B6C341C8; Mon, 27 Jun 2022 06:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656312713; bh=EMTvjrRTRYMQ8NvdZxMXcH2NZ3gwtUoi5uAa917YgYU=; h=From:To:Cc:Subject:Date:From; b=OdEhO/MAo3AFkdbctkb6BCcbEyvLcD4iwBI77ZyUX3ZvdU0F7DllZKYyE8gkP9WQK ZGDAJVOJyTuwvF2MbvzhsZgXBQij7rXRYn1v5P6TFggka6ut+B4Zw6Fx5HmirG16y7 dNR3bAi/c+bMrQDQeCbGzDmA3eW2VCH+5wv9hyNjiI/25AXmxSSznadBvtfeWDqAm5 GDaD639zJe0rDxwWEEnNvT5Il6LpwGCgDvL1eH8knm3S4IrGL/WbxEc+8BHoVWRR9/ iz6Yv8bWPUxUtYKcaalGZHO52oCjg34LJIGiAKwQJSECgAohNEvxYHKe5gcS5MJHWY +s0S6Cw+PBbzQ== 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 0/2] ext4, f2fs: stop using PG_error for fscrypt and fsverity Date: Sun, 26 Jun 2022 23:50:48 -0700 Message-Id: <20220627065050.274716-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.36.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. 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 | 61 ++++++++++++++++++++--------------------- fs/f2fs/data.c | 60 +++++++++++++++++++++------------------- fs/verity/verify.c | 12 ++++---- include/linux/fscrypt.h | 5 ++-- 6 files changed, 88 insertions(+), 82 deletions(-) base-commit: 0840a7914caa14315a3191178a9f72c742477860