From: Eric Biggers <ebiggers@kernel.org>
To: fsverity@lists.linux.dev
Cc: linux-fsdevel@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Theodore Ts'o <tytso@mit.edu>, Eric Biggers <ebiggers@kernel.org>
Subject: [PATCH] fsverity: remove inode from fsverity_verification_ctx
Date: Mon, 2 Feb 2026 13:33:39 -0800 [thread overview]
Message-ID: <20260202213339.143683-1-ebiggers@kernel.org> (raw)
This field is no longer used, so remove it.
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
fs/verity/verify.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/verity/verify.c b/fs/verity/verify.c
index 37e000f01c180..31797f9b24d0f 100644
--- a/fs/verity/verify.c
+++ b/fs/verity/verify.c
@@ -17,11 +17,10 @@ struct fsverity_pending_block {
u64 pos;
u8 real_hash[FS_VERITY_MAX_DIGEST_SIZE];
};
struct fsverity_verification_context {
- struct inode *inode;
struct fsverity_info *vi;
/*
* This is the queue of data blocks that are pending verification. When
* the crypto layer supports interleaved hashing, we allow multiple
@@ -314,11 +313,10 @@ static bool verify_data_block(struct fsverity_info *vi,
static void
fsverity_init_verification_context(struct fsverity_verification_context *ctx,
struct fsverity_info *vi)
{
- ctx->inode = vi->inode;
ctx->vi = vi;
ctx->num_pending = 0;
if (vi->tree_params.hash_alg->algo_id == HASH_ALGO_SHA256 &&
sha256_finup_2x_is_optimized())
ctx->max_pending = 2;
base-commit: ada3a1a48d5a21a78c1460c8853502d13062ffc9
--
2.52.0
next reply other threads:[~2026-02-02 21:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-02 21:33 Eric Biggers [this message]
2026-02-03 5:29 ` [PATCH] fsverity: remove inode from fsverity_verification_ctx Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260202213339.143683-1-ebiggers@kernel.org \
--to=ebiggers@kernel.org \
--cc=fsverity@lists.linux.dev \
--cc=hch@lst.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox