Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F3CB36BCCC; Wed, 28 Jan 2026 15:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614032; cv=none; b=X55HNfZ4blwRiaHusSoGkHrgjD1dB+mF1BIQnNynpW9OqjVVMvOy1uL8sjMUzvqIlOhLKw+tYPtZcGsizBZTmgHx5febef8vbkPwi3sUjJtW3aoG14EAn9zcXloMD7vJOeTQMOXOYmqpnXP1AdTb6NvirDRSzvP1alPq5L7WGtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614032; c=relaxed/simple; bh=q03c+SY16ozMssnyd/WDI27hnXO1G1LvGqxgshwtktw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lAw270VcrnkP/TivA8ANuyCJfvAdS5J23Ea9rmWvbrZbKjJpi66rRYEMG+mzOpsp0XP1AfEkzsdIVC8ojQyztIGwYEcBiW0kEJi6A8hwdT7SG6FE2urXyy/8EiceRNkblrcxAGpKVGazjqki0FQ3Inn3A0vYaSvTe+So5nDw7z0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=xWZ0Ob6U; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="xWZ0Ob6U" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=0Ic6Dg2kMbDfbML3FwgTOGvJaqoJ4sjBOcPdz8pJF9g=; b=xWZ0Ob6Uwc4f4G2Brz/N7pMrg8 QKnBg+DCe3ZSuhqviV+qcmwdg5AagT/Z/h4hZz+QI1YhT2huEuSGXZeNQiCgIl7LzEJqG7uhbjnoT PKWq2B6/deeNtMiwKQmPs9I/sF2J90aAtSn2qyC8/M3zZ4mvSiTlfoMAp5zs/Wh2iDLjtJLSPp+LZ XarLdYIi8U534G4VVt6RUrtE4Fa5tkNbRYWkugmQwoUJsb0l+Wv3InbPS21Whs+mF0IRsitQBHT0G LYXBRDmKEFhOj1/x/4eYUhycHwK3XVa4vwPOB1TJhjueiGE+M3t83jCio5EynrdWazsGHOD5+wlbn 9OmJglyA==; Received: from 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vl7Rg-0000000GHKF-1SPU; Wed, 28 Jan 2026 15:27:04 +0000 From: Christoph Hellwig To: Eric Biggers Cc: Al Viro , Christian Brauner , Jan Kara , David Sterba , "Theodore Ts'o" , Jaegeuk Kim , Chao Yu , Andrey Albershteyn , Matthew Wilcox , linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, fsverity@lists.linux.dev, "Darrick J. Wong" Subject: [PATCH 03/15] ext4: don't build the fsverity work handler for !CONFIG_FS_VERITY Date: Wed, 28 Jan 2026 16:26:15 +0100 Message-ID: <20260128152630.627409-4-hch@lst.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260128152630.627409-1-hch@lst.de> References: <20260128152630.627409-1-hch@lst.de> Precedence: bulk X-Mailing-List: fsverity@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Use IS_ENABLED to disable this code, leading to a slight size reduction: text data bss dec hex filename 4121 376 16 4513 11a1 fs/ext4/readpage.o.old 4030 328 16 4374 1116 fs/ext4/readpage.o Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by: "Darrick J. Wong" --- fs/ext4/readpage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c index e7f2350c725b..267594ef0b2c 100644 --- a/fs/ext4/readpage.c +++ b/fs/ext4/readpage.c @@ -130,7 +130,8 @@ static void bio_post_read_processing(struct bio_post_read_ctx *ctx) ctx->cur_step++; fallthrough; case STEP_VERITY: - if (ctx->enabled_steps & (1 << STEP_VERITY)) { + if (IS_ENABLED(CONFIG_FS_VERITY) && + ctx->enabled_steps & (1 << STEP_VERITY)) { INIT_WORK(&ctx->work, verity_work); fsverity_enqueue_verify_work(&ctx->work); return; -- 2.47.3