Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp296228lqp; Tue, 11 Jun 2024 05:07:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWaPvOS1hMUeO+oRmPJFwDplzdJmM7gc+atiGDLRdI1CNCSEYBQyT8Q+qOadn/Yd6bmddSlahtq+DJgmgDBE7bl822wQ1PwrdaprWhfqQ== X-Google-Smtp-Source: AGHT+IEDUrGOAM+Vfh0y8UHFjfXU7YQAsEK0fMbkiksniNJsonZ+d/oCphuec5IEkhjobrV2Lu36 X-Received: by 2002:a50:cd52:0:b0:57a:2eff:8ae with SMTP id 4fb4d7f45d1cf-57c5086b408mr9166043a12.1.1718107669153; Tue, 11 Jun 2024 05:07:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718107669; cv=pass; d=google.com; s=arc-20160816; b=IyAdiLgCyZDuDsl5+aC6nfUkzPcfWAmBD48KTfqtYPw+3ruOus8y71MtlKq2LHs9vb rGcAO+rusEt210mRtOZa4qJTbQd44F9/NbadvvqsVAb7Jq4l9u6VEFzI+qywixLFbtpP i4/cqcFT4zX5fNa07UdqN7i5twzG0KNsi1tDJckOoev0YxAghDsWQ56CaEuxz6CarYyZ IGboupxE2OVli+ijLlw5sRsZwarwLWmZEha5GK/7k3PzVFqvk+S8gBFgdWS3VQABBybb 1FFvPQeirFMF2EPvhj6xZFIFLqNq1HGNdZZXFN4+goQiHzEm9zyIARN64qQLKtvby1cf v+2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=osoKxcalEVuRJFuOqCaTQol01Qi45FmnGSU/HheJSwQ=; fh=rrOY/iZ8X2hqeMbLfizpsHwHmywOIt0QL8y/LhNJ7c4=; b=MwgSBy9feH7zVRpLQaeAHqeeedMeMQtaSv/aDE2Xv/r2/Q82NPuoLRX7qcO4NPnWz3 58RNIP+F05BUrTzf/Z/WuzUFCnbwhv2X2urVHZHzqDUAHevCGwdB4+bC+KFnD96uei/v UntM4LT/V/oAeT+SvUc13KV6kpRjuThWa+1pOHMzNkHlVNcRy0LmWaMUClK797E5Eblw W2naPFTlWBKIyVtO6lxJrF9khXMGPQI0uys22jyIZS1hK8BCbii4q1SWuAS85LOteJKA HOLYekvok+JqeOifPmNWnyDCWkrX66sMSBGmUD0XvwRru0KLWejVmJ+h1AAmZZVg5Lqs Rkrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aCQCjnyl; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae1fe02esi5767804a12.264.2024.06.11.05.07.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:07:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aCQCjnyl; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DC1A41F2170D for ; Tue, 11 Jun 2024 12:07:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5794217C9FA; Tue, 11 Jun 2024 12:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aCQCjnyl" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07EC917C7D1; Tue, 11 Jun 2024 12:06:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107606; cv=none; b=jAIJK2F5YUo27vk+b/utxnWmKa+ghcPTDaicU5t52eNHjRiG8pfDDcb4SfJoYSjR5Nou0OFG4S1iQGXAviKKG4PdD5nxs7itkOPu9tERuqDVnyKnyMghR7LGeq5YvvgDwu2CPTsC+/T49+FATGd6leUojYohHAfz5L/I2bNweFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107606; c=relaxed/simple; bh=ufUXzSo3VNc1Yw6YK7C1iq2qUtbnpuulVMhXGED8cN8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K5fXSmaVTS2cHoPpcYnGV466nOXIxecAnbSGa8e6zovMva5ihx5FX5HWJnYF7P0Iv+u4mOML1LJaqVoYMMWfaIbr/HlQ1/vXNwO4QAA5KEaG7ravRkXs0lebzoeL0dyHy4FemZ0HNR8rFEbjJSScseroegcv3NLqTw4+/+fwNmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aCQCjnyl; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4210aa00c94so47053405e9.1; Tue, 11 Jun 2024 05:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718107603; x=1718712403; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=osoKxcalEVuRJFuOqCaTQol01Qi45FmnGSU/HheJSwQ=; b=aCQCjnylq35Rb2OemlU49fJZFxwpYbpYox6QfDpAch9SeDlB4dd1EVRENdKWmtGOEj i3s4hhAbrtFpe5giQCIsOrrTlJRec5JaPTuhwXboCXsdf1qs6EHBS84BrC0jvn8WEBWu yWc9DFV6DeE5qpAL/WTay3OQos0Nxct1KFvjgsOLO/qOe3pXkx/MkjK43+EB063mX/5E dldtfPJBiejUa758SG/mFiZ6pwhAxNzo70JN+0OodX+6VyVBSMuINv/1xm2f5eqDZlb6 xl2jBE3djsSHu+DonO/rv+jIN/FST7KXYvkgSEDsT/gWO6ttAXqzZTlq/N/mcnM8kLS7 r9Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718107603; x=1718712403; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=osoKxcalEVuRJFuOqCaTQol01Qi45FmnGSU/HheJSwQ=; b=O+y9aUs4GlKzrJey3Gi88LCHHGPwbxyqq+AAAxm/RVPauDy7fykS0thC7JNVwbfEu0 5oU/3K8JUbIM9SFa5+B10AJW9iu0INsUWWW4F/nxko7iaUdo2IJV1AZL5r3igGAgdfLc WFjlIZG2mikElDDN6pbLZ9qqSk8kmvmT1M+Vgy/wVFzAGbcOEOmoVQRUrAZtCbcSortR 0hlncvg3v6XczN5Dm1weP2W7w1XlqEp6eSEeYT+FT/UUmY+5qU1cyyei016p+l+wA7C4 Sn4MQjJr+rjVA5Zrzxz5/iNTJaHggf2qUdvgxLtnpSLNjInEaDGtOC7gorRQJZjdg4x2 eN3A== X-Forwarded-Encrypted: i=1; AJvYcCW5Yp8+VwAtVlSBxyqLZXeL78GTeHmhxaG5sYzVchjcqne963o40qTUgM/JBEuJALBO0fhVXvFh65BLLcqkU0Zw8yJE67+x/ypdf3lCXQF/SQwHkZ6JnQza9sI48hqhmRP583yoEFq9l+i6lWjn7o5Sz3spXHZ6CzJ/1GBZrlsSWi5RV2xb5FPyBx/nmLYTn3gQJn0Z8gJ6cze9C6l44PGswHh7XYwD X-Gm-Message-State: AOJu0YxadQ4gApvQlPEx5+st3x/oqxd5kkKOu4vcYLwwB6ZXxbghCXxc 5qq1Td1JJqy8zdgBmBuheKbo4tFQ9JMYZJ6PGRpEGKj0KsYDK5I8EJeFGrQP X-Received: by 2002:a05:600c:314b:b0:422:6449:1307 with SMTP id 5b1f17b1804b1-422644914b4mr11136665e9.32.1718107603309; Tue, 11 Jun 2024 05:06:43 -0700 (PDT) Received: from f.. (cst-prg-65-249.cust.vodafone.cz. [46.135.65.249]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215814f141sm209315785e9.42.2024.06.11.05.06.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:06:42 -0700 (PDT) From: Mateusz Guzik To: brauner@kernel.org Cc: viro@zeniv.linux.org.uk, jack@suse.cz, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, kent.overstreet@linux.dev, linux-xfs@vger.kernel.org, david@fromorbit.com, Mateusz Guzik Subject: [PATCH v2 3/4] xfs: remove now spurious i_state initialization in xfs_inode_alloc Date: Tue, 11 Jun 2024 14:06:25 +0200 Message-ID: <20240611120626.513952-4-mjguzik@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240611120626.513952-1-mjguzik@gmail.com> References: <20240611120626.513952-1-mjguzik@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit inode_init_always started setting the field to 0. Signed-off-by: Mateusz Guzik --- fs/xfs/xfs_icache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index d31a2c1ac00a..088ac200b026 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -86,9 +86,8 @@ xfs_inode_alloc( return NULL; } - /* VFS doesn't initialise i_mode or i_state! */ + /* VFS doesn't initialise i_mode! */ VFS_I(ip)->i_mode = 0; - VFS_I(ip)->i_state = 0; mapping_set_large_folios(VFS_I(ip)->i_mapping); XFS_STATS_INC(mp, vn_active); -- 2.43.0