Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp114192rwb; Wed, 14 Dec 2022 14:47:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DauZJMVA8er9bdMn3JTzTSrHlyJpupE0435jhmYNqTyxMCUeANRIfyLeODokxyhKjnGks X-Received: by 2002:a17:902:e193:b0:189:8002:1996 with SMTP id y19-20020a170902e19300b0018980021996mr21765080pla.35.1671058062087; Wed, 14 Dec 2022 14:47:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671058062; cv=none; d=google.com; s=arc-20160816; b=JSBsUcSsyCRXWQpA+aQZfLZwHkpb6eUPtjm583xANx8ID0NFUEiUW4VLeLm6fODqTP WH455Q8YOdQtwMBIuHOJDKYPnkgYCrU2W1oVjRxUcjoRG3HRlgZmaRWcIxRJdqL1CWwR GZtuc0pg6pBHSMAMtSB0jk9Cxfrb8WCeom8KASVfq9ewX4VmBG6bEjf68DHwkd5OSM0G Eo5BZaE/nLDqoc4YFKTSnlNgc91wY52lmtPP1zVZ6jpBcBNAB/D6yKC6LlBLzlNdMaRU LmsWiuU8fav/R6dYr6u2g9n+1nGfrf7JzWAMDnYPU5zG5lepMWQmRx9nKKK/l7fOHdcd FBbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pRdDYjjZY9OqS4YNrR21GFaeiW/9mPNrHz721v216T0=; b=vdGS8F4aNBGt9vZ6z4IqvnbIZubqsG9ZeMuLqsoy0wxRpOL0WspH7NhmXN2ZChf3hE OIMa12AjkQgaKJzpN20L7MjCET1Zroafr14B6HOP9SzAzoeEY4oh8ZcvWQWyjxUrQm+t HNTmAnnNE3F1F652P6QgKtPKINWzMqf1VBNgF9AJ8+CuQnuMu41hd0kMvkMHusxe/Fgg IiRB1WwmoJEe0ztiKCdXuLyMOHXFI3+4GrAhdQQArEHIFlgSh6sSYJ+nZmn5KlUVrNpX 9/z54mTWN/EEbAE8208FUIryhKKf7KEZCjulpIxKfx9TGgWnL82z/a/ecVtFKULgZv2U z2rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HxY4DkrK; 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 p17-20020a170902e75100b00189dfa8b7c9si4847655plf.294.2022.12.14.14.47.29; Wed, 14 Dec 2022 14:47:42 -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=HxY4DkrK; 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 S229565AbiLNWpp (ORCPT + 99 others); Wed, 14 Dec 2022 17:45:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiLNWpn (ORCPT ); Wed, 14 Dec 2022 17:45:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307B8B1CA; Wed, 14 Dec 2022 14:45:42 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B8BE261C36; Wed, 14 Dec 2022 22:45:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC9F9C433D2; Wed, 14 Dec 2022 22:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671057941; bh=7p0zl/jG1hqhXufm5ECGwbi68i+bng+vFDX0eMjfN3M=; h=From:To:Cc:Subject:Date:From; b=HxY4DkrK0t2KL6AL8sKo0g2/D5iAe7VQX6OgGC3naPJVeEJEV6nNQkqY4gA+y4cG4 gJGQq9GoJ/u4/1J/gXYwiqWYgnehjQRd9NKijW3cnM2uSb/F6RDuwR1Skv1zS0A6HW gkuPB4XmVHPXs8BE/CVtQoj8yF1j+c/cv7x+NFxNuki/F9En1mCKFgcQDZ3CZrT1Nx /b7rMYC79Jr3KYvp6jJ/CCn/BgY3vjp7qtKuph7wffB+XuS7en6bA8g+qxgVRdENLQ S23YmDznCogG6eONQt+xTuPW6tFpluup/Da3+Ih2MFxxbPsAtWf9AHNlGeWUcpaI35 FHHlEcITf4ptQ== From: Eric Biggers To: linux-fscrypt@vger.kernel.org Cc: linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, linux-xfs@vger.kernel.org Subject: [PATCH 0/4] fsverity cleanups Date: Wed, 14 Dec 2022 14:43:00 -0800 Message-Id: <20221214224304.145712-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 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,SUSPICIOUS_RECIPS 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 This series implements a few cleanups that have been suggested in the thread "[RFC PATCH 00/11] fs-verity support for XFS" (https://lore.kernel.org/linux-fsdevel/20221213172935.680971-1-aalbersh@redhat.com/T/#u). This applies to mainline (commit 93761c93e9da). Eric Biggers (4): fsverity: optimize fsverity_file_open() on non-verity files fsverity: optimize fsverity_prepare_setattr() on non-verity files fsverity: optimize fsverity_cleanup_inode() on non-verity files fsverity: pass pos and size to ->write_merkle_tree_block fs/btrfs/verity.c | 19 ++++------- fs/ext4/verity.c | 6 ++-- fs/f2fs/verity.c | 6 ++-- fs/verity/enable.c | 4 +-- fs/verity/open.c | 46 ++++--------------------- include/linux/fsverity.h | 74 +++++++++++++++++++++++++++++++++------- 6 files changed, 84 insertions(+), 71 deletions(-) base-commit: 93761c93e9da28d8a020777cee2a84133082b477 -- 2.38.1