From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796230664; b=OskloBzte14tWtwm8n4YZmeYcrFovlVJBmrMhaxWSaGx4Di+qFOGdvU2WdM6KWy75DGB x2w6CMasyBNpCnv0wrreAdIX6r57zjQ/22/nIVCx11dkyX3IzNqIkfJDoPdVa5oz489Hb fPLkDVGM7bebc5KwVpaxJKzwrOiQHJnRqkWNcqID5xO+dy+hRNbsX6Oh1YgEWL49A9pUQ B2cZk5N5vYhrN13jKOEm5KdI8TvwDy7WXkt5fhm1Uf14u1vSYb7kVXUJH6NsZDlBuy7/R 59wCuZM/+tufPE+bZG432w+vZOlefvWu02ImCHMtqrhFyJ9SLrzmgdP6cpzdxoPrt8w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796230664; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=E5gSXNwtA5kQIUw/uoqqaybdSZDyhnTy+gYKDJ9u12s=; b=wqBNPiD5bUcN2XcfP3V1qEvpK1hl+vdpAG8FOQ3tERtPjWI///eSdynSicEB6FoK+F/8 tEoCSAeo83cx/NTZ0FZJJtGNcn9M+98XSp3QoSrR4US8hLEf2un6KfAGC1cwj7H03P3K/ i95mP/wQZqGGieW0ACd4Go9J2fjUyCo5wK7+2pooiYww1dnXGEN1EOR3XL2zAV3EQqG7H 3fpPUXjcEuzcQUsr52tdpNwQfX6IL4B0elg7nYUwl4shdoAeIcK98QAIrV7ea0WsitErL px2LTahWO1+AQuFA6Czhg3GsbGLRu30fGAaLMBEX2ntf+AO7DKQhwJ3UdQWsDn4mQew== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hvfNdFIL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3071606A32C; Wed, 2 Dec 2026 16:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hvfNdFIL Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFA591F0089F; Wed, 2 Dec 2026 16:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796230663; bh=E5gSXNwtA5kQIUw/uoqqaybdSZDyhnTy+gYKDJ9u12s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hvfNdFILj59pCRVuxWx0qXfGamvLzh2+2G0ieJPvuhPCOgLK1ry5z2vwDhXi3EBa0 vtVLJylbOmq62Difd/q5fpmVjvtUowpqxncR00SH5NXIDkw56sePUd8iB19stKBVx6 G/nQfMUGI0cxDo+9ejk51AjZnBbIhIQbhKZGkjq85N/W21opC1otKKbBu3Befn+jVR 1vYwOIs4QLVi4TCT1ODXGj2l3V4QVxripLe+CfteihZgctc8gfj3aDRgW07KZxFoGN LUqFz1zSOUMq2PWTAxQCH6kRqZVw+inRvBUkUKXhJXcOCVn62BNna0doawpyrZQWYY 6pMNwtAD5IDzw== From: Andrey Albershteyn To: "fsdevel" , "linux-ext4" , "linux-btrfs" , "linux-f2fs" , "Eric Biggers" , "Christoph Hellwig" , "Carlos Maiolino" , "fsverity" , "linux-xfs" Cc: "Christian Brauner" , Andrey Albershteyn , david@fromorbit.com, Jan Kara Subject: [PATCH v20 01/23] fs: constify inode argument of inode_state_read_once() Date: Wed, 2 Dec 2026 17:56:31 +0100 Message-ID: <20261202165653.767961-2-aalbersh@kernel.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261202165653.767961-1-aalbersh@kernel.org> References: <20261202165653.767961-1-aalbersh@kernel.org> X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Constify inode parameter so that callers can pass const inode. Callers do not need a change. Signed-off-by: Andrey Albershteyn Reviewed-by: Jan Kara Reviewed-by: Christoph Hellwig --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 5b3a100aba77..5c62a968fbde 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -878,7 +878,7 @@ struct inode { * * We hide all of it behind helpers so that we can validate consumers. */ -static inline enum inode_state_flags_enum inode_state_read_once(struct inode *inode) +static inline enum inode_state_flags_enum inode_state_read_once(const struct inode *inode) { return READ_ONCE(inode->i_state.__state); } -- 2.54.0