From patchwork Mon Dec 16 19:24:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13910261 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F198AE7717F for ; Mon, 16 Dec 2024 19:31:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8453E6B00C6; Mon, 16 Dec 2024 14:31:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7F4B96B00C7; Mon, 16 Dec 2024 14:31:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E4076B00CD; Mon, 16 Dec 2024 14:31:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 4CE806B00C6 for ; Mon, 16 Dec 2024 14:31:11 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 05BCA8081F for ; Mon, 16 Dec 2024 19:31:11 +0000 (UTC) X-FDA: 82901815164.02.DC2D6BD Received: from mail-io1-f74.google.com (mail-io1-f74.google.com [209.85.166.74]) by imf26.hostedemail.com (Postfix) with ESMTP id A91AB14000F for ; Mon, 16 Dec 2024 19:30:46 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=at2aBXpR; spf=pass (imf26.hostedemail.com: domain of 3f35gZwYKCEAuwtgpdiqqing.eqonkpwz-oomxcem.qti@flex--surenb.bounces.google.com designates 209.85.166.74 as permitted sender) smtp.mailfrom=3f35gZwYKCEAuwtgpdiqqing.eqonkpwz-oomxcem.qti@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734377446; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=wSQ3mT4u4m7ofM+stpYMvUJpeXhYChT7fq9/vjKfHLA=; b=f4JBB6a36pR/EMfVy5Tj96UZekWKGMMApkxzGIuUyaIMAbFrHMWZ/zo2BjUWyFNW7onOGV 3OkE8zevoQAVX4fXzJtl+10G74a52MYr0tzLnAA++WvwKoklzxpi/h1YemgYiidnS+0RP3 ERyJVFfF+Z3t98ssYaO+8mStjmMTgmM= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=at2aBXpR; spf=pass (imf26.hostedemail.com: domain of 3f35gZwYKCEAuwtgpdiqqing.eqonkpwz-oomxcem.qti@flex--surenb.bounces.google.com designates 209.85.166.74 as permitted sender) smtp.mailfrom=3f35gZwYKCEAuwtgpdiqqing.eqonkpwz-oomxcem.qti@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734377446; a=rsa-sha256; cv=none; b=sgoOIzrLps8i7AXJyExmx0id6OF5a5P/A6G46fR/f7llyuHq2zAiXztnumAJl3PnbXpBic M4vfqb+aU2nSIN8r8p4O4rsniHiGhZOd2metJYaF9rnUUdAUShA1CwR24VtBLFyFwqdVZP ip9sWj28N3BipIpEvKWzDouokrccRj8= Received: by mail-io1-f74.google.com with SMTP id ca18e2360f4ac-844d5c4a27fso866592839f.0 for ; Mon, 16 Dec 2024 11:31:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1734377468; x=1734982268; darn=kvack.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=wSQ3mT4u4m7ofM+stpYMvUJpeXhYChT7fq9/vjKfHLA=; b=at2aBXpRHWMyxaTMeFCOEsfQ3EzJQoQ+jjb+tKnbhbAdIKw+nbknwsiqw3rWZQE8th MkN5EfX9vkCmkTQvxX5A0lQnmnaqihPZjlIav2xZjDEW+ywDn0QOxJ1nkLWKtra5lCjM ykr4t3xNWhxWfTUFBYTK0HBOc2SOTXkhARAX56NRMI1pcK8W/GY0wP8WnFM8oS2r8RVQ 6emdMlvQPdnFo10IF/bIPrRS33Ltmz1pr2k9qYwPqtAhkHX7J7s/3g2nD+0aupKa71fp tqg9/rmW3rczfuUE58xEnGaqN5iYmpMNUcYDFesUgZWl128i4h6G1IZ8HlUD8fiq2/M6 le+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734377468; x=1734982268; 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=wSQ3mT4u4m7ofM+stpYMvUJpeXhYChT7fq9/vjKfHLA=; b=g7IiOQu0NNZlRFfDRni0rkXdDLQeAzMDYFV12Fg8AA3nfSuW6bbFaFbripRHEv7Kpb A+p+KSXPbYvsKL385SKlLKo/RjtmJmtKaS+q5Qts1+iY2E8UmNF4Xd6eSwLMoZ0JtwiA OBK5D9xD96v9TbvFFj6NJPWIsUSZ8WbKFpQp833TB8wOY7wG/0akuDJoAZD6QquYzxge 7rrOIZOWFJszkiNppTJzEGmo3oKLidCcvhJ/U1jiXXVrE2LbTuRMMJ8bX19Oj8cLdx7V XTFYMqUyXyHmftE5D/VcIcvYdulnOc3+O4W79tfPriCTvEpdU0lm2zz79MCQGQZHHI2c 4OXg== X-Forwarded-Encrypted: i=1; AJvYcCU9a3/lMbttX4bqpONCVeQmPAtWn3xgygwK0wWV7aHlxF7qqDHe37gUi5xSCn0GrzWPCwCrp4DKUg==@kvack.org X-Gm-Message-State: AOJu0YyEp3ISiaJg2ZOaxHJjWHPYO4ceCnGgRnojjEHB7ovfE4o5sz4n ZTzNd3+ydrpUnL9/JDsP/L7rQ6TAJww9bjxyjCUPEoT+9wJHiEIo5mHM+KHJja6jA3kurL0WTse skg== X-Google-Smtp-Source: AGHT+IE4pawsfAUH9TLKs+lZMgX1XervLrLNUWY+S4QjAFjLPVQLu5/+TUucSp06ogqQfpKVSrSRx/CLyDw= X-Received: from pfop18.prod.google.com ([2002:a05:6a00:b52:b0:727:3c81:f42a]) (user=surenb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:6d8a:b0:1e1:b12e:edb8 with SMTP id adf61e73a8af0-1e462d60708mr1104953637.30.1734377087952; Mon, 16 Dec 2024 11:24:47 -0800 (PST) Date: Mon, 16 Dec 2024 11:24:15 -0800 In-Reply-To: <20241216192419.2970941-1-surenb@google.com> Mime-Version: 1.0 References: <20241216192419.2970941-1-surenb@google.com> X-Mailer: git-send-email 2.47.1.613.gc27f4b7a9f-goog Message-ID: <20241216192419.2970941-13-surenb@google.com> Subject: [PATCH v6 12/16] 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, 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, corbet@lwn.net, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com, surenb@google.com X-Rspamd-Queue-Id: A91AB14000F X-R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 NSMK99Od7RyNQ00EtwbENX7MgSyT1xPq5cdEYYzW9GAi8DazdtOoJKFW7hWqiEfcQjFci+BAd68m12qVb345ev4msniacAXNyLFT5fEa9s1NBcTjYgyxWImltCm8sL+8uf+AmWgjTboOW7PlDx9w+sb0ynjr1IjTZypJ0kM6pGlHA+Qp3LECrLDVZRMZisGOZWXsmRYI0w9unGQiihOd7nSL1moTXkEMjryZlZSQ4rUaCcuo8nazAR3JEHrkbt6FxaZD1WUDvWYHZylhBs8JaqyhVxpBAD4WyO1RjPdENG41kGkQIm5r7BVae3x/lwu248SHVex5KxJ8GT3PPRZmIIDo+TKu9XpK6ubiEbRGedmL+SF5XLnwMr9VfETrW6hCA+x8KRQ6gwgTGDYfcq6C+HBj2PFCzykN5zbtQ5MrDegPI/upPJ7REo0ZA3A382qLx5rAzMmqvjqDABho38jm9JLi77sGK8Pn+0Y52AxRvGCDoKXGkA3TzaQbSEe4zw1dA81pS9oNDp0yW+4PeiUEE6QyU4+Gfn6EHlapNo3A5Pj0pSlN4QK4DfXJYH19DIZB9bTwlnNcXEVA4LV9UlBTTQ8sTaQ== X-Bogosity: Unsure, tests=bogofilter, spamicity=0.468236, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 --- include/linux/mm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index d9edabc385b3..b73cf64233a4 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -949,7 +949,6 @@ static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) vma->vm_mm = mm; vma->vm_ops = &vma_dummy_vm_ops; INIT_LIST_HEAD(&vma->anon_vma_chain); - vma_numab_state_init(vma); vma_lock_init(vma); }