Message ID | 20220729152316.58205-2-laoar.shao@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 5717BC19F2B for <linux-mm@archiver.kernel.org>; Fri, 29 Jul 2022 15:23:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E7C166B0072; Fri, 29 Jul 2022 11:23:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E28526B0073; Fri, 29 Jul 2022 11:23:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA2638E0001; Fri, 29 Jul 2022 11:23:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id BD5BE6B0072 for <linux-mm@kvack.org>; Fri, 29 Jul 2022 11:23:24 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7C25F120AFB for <linux-mm@kvack.org>; Fri, 29 Jul 2022 15:23:24 +0000 (UTC) X-FDA: 79740506328.12.0CE3041 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by imf01.hostedemail.com (Postfix) with ESMTP id DCC5F400D2 for <linux-mm@kvack.org>; Fri, 29 Jul 2022 15:23:23 +0000 (UTC) Received: by mail-pl1-f173.google.com with SMTP id x10so4199900plb.3 for <linux-mm@kvack.org>; Fri, 29 Jul 2022 08:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N3x5RniCtfbU9X4ilWg0wCJ6uR/I379+KNtOUGQRQWk=; b=MR6BnmL0+/AkdUIl6s2D0Mxj44Qh3mJnK0QhajxPtZyXDzIXOP8IgodIkHLOh5vW6k SuFnhXmgAn+NpmxydQlF2a5pCWk8FIX8YEU6Y+G/fLC1y9eUrXvK4FpC11fyEag0y9yj 4CTFiOMwH/ZcDg0B7spmm3TY3jM0WQG/2GJQVfu5kGbTfSDayJ7G7S62l0lrpHxoAAeL v7AujGGF+n4rnR258DMNk7ITHeA9SxF2rVm6UETeCFHXKFIkGunItcwab3EE5t7t1UyL 93YK/uSh8T5UUYpYYy3f8mynhtlzyPgDz9njO6jiby40lR2jT9ZWCnFNBVw1ZBokfAQC eJNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N3x5RniCtfbU9X4ilWg0wCJ6uR/I379+KNtOUGQRQWk=; b=MlKVK2H/7qL3NNnV4DJzjEJ7WF4Yn1kDwP1Xa0v7asagKt7Q4i1o1AS/P7N2Ux52Mk atXXGifZLzL4ZowTfwYBvY6xGbR6ICSxVaBJ/ebpzuxMbqLWxnbkRDMrgMLOWq34kBWa lvvy9SjNkOSARTPaedPItWhKGcs4ov7bzu0a9JX8UMKc0UUI5k9oky4Oh84/d9/S4ghf TOlRCwhj+JQg4KaG1Yl9PNWpwWXH0JOAOiUxNukGTs0E4ciJINW1raNGUHBBai1hMhql ySKsn9Qz19VEPax83EVHwdinblq11AS/5+8csWOEPubdnfevujWkAHmolz4hdqv30qbx Suxw== X-Gm-Message-State: ACgBeo0XpulpLxfTPL5r20scT0b/hQJu22u2WlZarSJO0CWbE940h+aJ drBmz3CGIFKfOXZhb0N9rqs= X-Google-Smtp-Source: AA6agR6PxNVeqQc1c9TRKFUa0+QWSa9MU7oMGsj7LktTOarVwJpRJ/ZDTOGpZctMMv5u6/+XFxhhZQ== X-Received: by 2002:a17:90b:3555:b0:1f3:259b:b8b3 with SMTP id lt21-20020a17090b355500b001f3259bb8b3mr4635942pjb.91.1659108202921; Fri, 29 Jul 2022 08:23:22 -0700 (PDT) Received: from vultr.guest ([2001:19f0:6001:2912:5400:4ff:fe16:4344]) by smtp.gmail.com with ESMTPSA id b12-20020a1709027e0c00b0016d3a354cffsm3714219plm.89.2022.07.29.08.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 08:23:21 -0700 (PDT) From: Yafang Shao <laoar.shao@gmail.com> To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, songmuchun@bytedance.com, akpm@linux-foundation.org Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-mm@kvack.org, Yafang Shao <laoar.shao@gmail.com> Subject: [RFC PATCH bpf-next 01/15] bpf: Remove unneeded memset in queue_stack_map creation Date: Fri, 29 Jul 2022 15:23:02 +0000 Message-Id: <20220729152316.58205-2-laoar.shao@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220729152316.58205-1-laoar.shao@gmail.com> References: <20220729152316.58205-1-laoar.shao@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MR6BnmL0; spf=pass (imf01.hostedemail.com: domain of laoar.shao@gmail.com designates 209.85.214.173 as permitted sender) smtp.mailfrom=laoar.shao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1659108204; a=rsa-sha256; cv=none; b=d877MLmVABkr6N/djri6xitl4ZenTwiSodrIW5oZc8HTHY56tk/7cT9u2FyEiDkoPHRkO9 uBNJ2YIrt80EZB7CWfN1OWRKN6eyVF6lqMQ7Mv8dYQiQOR/GOUmD0FPMIvg0iB7gU87FSx IE8GqYs9SAccADPsOQn72g71R5Z0q+g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1659108203; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=N3x5RniCtfbU9X4ilWg0wCJ6uR/I379+KNtOUGQRQWk=; b=eH1A11yT+zspS4WNI6XBZFfhFsRzzu3g7OFCD39rspkoPE+ZO225Mtw9gAtSXr5ywQRhH+ 5YzwW0QhXbntfYHA3b4C3OJ1h6HdFoTiB7xbFgsIC2UUHXKYLM/YuBdULuNJ8W0F7atLRT L5z72h++ej3xZDHGs8G6nwuLBYyJIfk= X-Rspamd-Server: rspam10 X-Rspam-User: Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MR6BnmL0; spf=pass (imf01.hostedemail.com: domain of laoar.shao@gmail.com designates 209.85.214.173 as permitted sender) smtp.mailfrom=laoar.shao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Stat-Signature: karoibnp68o19gfksyrdgs3pnz4k5i9n X-Rspamd-Queue-Id: DCC5F400D2 X-HE-Tag: 1659108203-464626 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
bpf: Introduce selectable memcg for bpf map
|
expand
|
diff --git a/kernel/bpf/queue_stack_maps.c b/kernel/bpf/queue_stack_maps.c index a1c0794ae49d..8a5e060de63b 100644 --- a/kernel/bpf/queue_stack_maps.c +++ b/kernel/bpf/queue_stack_maps.c @@ -78,8 +78,6 @@ static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr) if (!qs) return ERR_PTR(-ENOMEM); - memset(qs, 0, sizeof(*qs)); - bpf_map_init_from_attr(&qs->map, attr); qs->size = size;
__GFP_ZERO will clear the memory, so we don't need to memset it. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> --- kernel/bpf/queue_stack_maps.c | 2 -- 1 file changed, 2 deletions(-)