From nobody Fri Dec 19 04:52:53 2025 Received: from mail-oa1-f74.google.com (mail-oa1-f74.google.com [209.85.160.74]) (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 08CAD280A4D for ; Thu, 13 Feb 2025 22:47:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739486852; cv=none; b=q6AtnokTtaKlzmStrH1t/lcHNeZeO8BKgbuwbVcPfxfHU+7/9I/P8F0axvAgw1odvWC1xdvlLwCakAMaJDRKX79Aq94D1LiZDC4uTl5xSGK89ISiYKoG7hSKqZsv5XmX1ONYblkgwqOrPkDx4UiSRGMfGcUZbUYUVcQJAhdfVzA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739486852; c=relaxed/simple; bh=5F18Oz1NfRhSsjQbCve5rPYuqz6M7KrBBHSkuVvdo5o=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=p+67uuc5YNy4NL5QXWcX+rH5KVSlC8nK6ZjhRM1Cf+5im8X2r2jhVntMRc6nb4Wc+Vku2YDxlQbAZ44PYMP3vOAIE3I8PMttdHEfCkdwCbENN1VB/uhOJntl6NROBo+rZ46LizgOLFkwinELMMbNaBujC+22zi1CVEAhN6N9IzQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--surenb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=sv1/ykMK; arc=none smtp.client-ip=209.85.160.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--surenb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="sv1/ykMK" Received: by mail-oa1-f74.google.com with SMTP id 586e51a60fabf-29e8124e922so2588689fac.2 for ; Thu, 13 Feb 2025 14:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1739486850; x=1740091650; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=pXllq5kyB/DC+XX0EOcvwmmu4CtVKAeaHuoDmEpYjhg=; b=sv1/ykMKkL9y3ME0ICgFpk7WlBu+Zf8bi7kmHqgkbjMUjOeTUcbsWGsH1jt1kOEmyi ngXVp2vv3xqYHRMeDpTh/RE6u6RjiiuHweVq19fAKSiX9BZd0Jm5fZf7ueBdW6dTzSXs LASCIBdbnTaFF/MACIrrbnpY4NGBDa51pm1amfAiMKB/K5hLPJlDlNZtYhT4EBr6kf8B m5Xp1Z5+x/9uhfkPu9K5e4SXlsMb3n3MUutXJTWLguF7om5zB9LNtCfqXBchPuvYIyaP pqEfvywldqTgChyf+t7ieWz7wo0Yst/W5fKltImhJkN26BqvJCiSmVazM5QiwSG0YBcl R/+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739486850; x=1740091650; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pXllq5kyB/DC+XX0EOcvwmmu4CtVKAeaHuoDmEpYjhg=; b=pg4Jkuej4yzSnOCc3kBFrguNyzDSMIBBNxO7SBlyotgjQUiYNe8bjTIgP2+8x6zanh GgtoxdAZdbArZD9ykzCl7y4WI2+EnDSecl4AfGLgEr1vMpLeXaSOWpt8jEHMf5AmX7Si A50gW7z63Fzb5mSRpfeMLCHJR4+E5hMp5o0QI4DFgcxZ35ptvif2Xl/ttAYKNxDj+zNx 36Dn5BEa9jWOpd/TY5kmdCIMayZ4uxbGybtFuoV5ZH3snTFDhzMRW8Pizd/ezvvRgrbb 5UlAl6VaSGnaUJcjFk6rFBgtlgWGbbNkv77yB+76T5shH3yAmzYDXyxaCy4yeJFObxub FZZw== X-Forwarded-Encrypted: i=1; AJvYcCXrqCGyvTUePmbDF1jG6L2eG87jvWkQv8Oe9G05i7mgQEcajvOpB4sPNwDlRu5Ep1rWgzvFevCREacBOSE=@vger.kernel.org X-Gm-Message-State: AOJu0YwyFKZfF1wP0YxAz2DjY54gUhAOHKlnBv2KAKaqeaHz5ii5O+ao TkN+LUfH6fq4cSqZ4KSPqfAy+8SpqeR4iWd9zsRwgVnpdPVkL/KCApy/uRqrJ2s3VEUmyvWqyk2 T4g== X-Google-Smtp-Source: AGHT+IE3Y43bKeMlQ9EjFiiS4JaeOx4TU+qb97Ij8D1UDPSI8dMXOEq3dWAIQbnurpdiuJXU+uwYfxTupKQ= X-Received: from oacmp6.prod.google.com ([2002:a05:6871:3286:b0:2b8:49d8:2c77]) (user=surenb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6870:2107:b0:2b8:306f:c5ad with SMTP id 586e51a60fabf-2b8d65155a8mr5274258fac.13.1739486850086; Thu, 13 Feb 2025 14:47:30 -0800 (PST) Date: Thu, 13 Feb 2025 14:46:52 -0800 In-Reply-To: <20250213224655.1680278-1-surenb@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250213224655.1680278-1-surenb@google.com> X-Mailer: git-send-email 2.48.1.601.g30ceb7b040-goog Message-ID: <20250213224655.1680278-16-surenb@google.com> Subject: [PATCH v10 15/18] mm: remove extra vma_numab_state_init() call From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: peterz@infradead.org, willy@infradead.org, liam.howlett@oracle.com, lorenzo.stoakes@oracle.com, david.laight.linux@gmail.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mjguzik@gmail.com, oliver.sang@intel.com, mgorman@techsingularity.net, david@redhat.com, peterx@redhat.com, oleg@redhat.com, dave@stgolabs.net, paulmck@kernel.org, brauner@kernel.org, dhowells@redhat.com, hdanton@sina.com, hughd@google.com, lokeshgidra@google.com, minchan@google.com, jannh@google.com, shakeel.butt@linux.dev, souravpanda@google.com, pasha.tatashin@soleen.com, klarasmodin@gmail.com, richard.weiyang@gmail.com, corbet@lwn.net, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com, surenb@google.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" vma_init() already memset's the whole vm_area_struct to 0, so there is no need to an additional vma_numab_state_init(). Signed-off-by: Suren Baghdasaryan Reviewed-by: Vlastimil Babka Reviewed-by: Lorenzo Stoakes --- Changes since v9 [1]: - Add Reviewed-by, per Lorenzo Stoakes [1] https://lore.kernel.org/all/20250111042604.3230628-15-surenb@google.com/ include/linux/mm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 11a042c27aee..327cf5944569 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -956,7 +956,6 @@ static inline void vma_init(struct vm_area_struct *vma,= struct mm_struct *mm) vma->vm_mm =3D mm; vma->vm_ops =3D &vma_dummy_vm_ops; INIT_LIST_HEAD(&vma->anon_vma_chain); - vma_numab_state_init(vma); vma_lock_init(vma, false); } =20 --=20 2.48.1.601.g30ceb7b040-goog