Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp951238pxb; Wed, 6 Apr 2022 05:09:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfiVrZstwWrHSkIYeIMVb7fGDvixfguWRjOlvH6TXTN5E56xTgC/FtI+FMpiGdEAEPLexn X-Received: by 2002:a05:6a02:106:b0:36c:96dd:8c17 with SMTP id bg6-20020a056a02010600b0036c96dd8c17mr7100625pgb.190.1649246966778; Wed, 06 Apr 2022 05:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246966; cv=none; d=google.com; s=arc-20160816; b=ETubn/aJEq9vBr75y5UfLth52IbvIJ5bZkKOlkiQWvKy/+791xc8lPUsczvyOJjrbv VY7KS5G3vxeS1JdwFK08swurrVxZRB9au3ftxpA5R17eMRk6Xc2FMeepYm+5NKix7rMU UdNKTtxjuZHlmjyebTBrcU1mnxlV1G7nHMIP5drcMBs1k8L+xNhKwu7pfWATx+MzLUeX B2tabrgt7mdYiewWwwaIpfLCQWQHRuKWUtu4eQnjn1Vz1v9eYZ5B1rty08aaoqjMmqvc A/1Sbx0h6qEA1E0HEuM98tDLNAAsGadhjz/LvTudeXBrEhicfjMmyfps1+D1osLvEByj BHGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=0JTmX/lC0hG9yq+jd3ONDrgjwpA6pJb9bWxC7NEbBEw=; b=ZGe7Lmx/iEELxVB3ZVQLeVfCVuTSOY9CXG0D61Ljx3rZdZzJVnsf/3N28z0C/iLezg zWselAE/GUQOs0uUCD2U9RckIdWG5vI0ST26SXq5VXnmDNwc2VDRMZ2twj5d2SFbyxSq 4QKEGJjZaWGu+gJYELV9E7sqerWj7Oh4LIx0DxdDeVHNrj14+KjlOLnIAU9PDIJy6Q29 ndiwVHV+g5MeYsW58m34gjvmc8zhrMHnXymYyncTQRueDEPBW4pFiLXRDQr9uj5rtQEN 6eyjWNeov2lUpx8v3PpBPzOtjJCYJfpmw8/aOhTRjBDvnF3184iFZeZY3RpDmeemvtxS szyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=WJEsMa2Y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r11-20020a63ec4b000000b003816043eeb4si17080125pgj.169.2022.04.06.05.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:09:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=WJEsMa2Y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B65647F005; Wed, 6 Apr 2022 03:41:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1849861AbiDFCk4 (ORCPT + 99 others); Tue, 5 Apr 2022 22:40:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1575698AbiDEXIq (ORCPT ); Tue, 5 Apr 2022 19:08:46 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96AF7275CA for ; Tue, 5 Apr 2022 14:40:18 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id b15so682429pfm.5 for ; Tue, 05 Apr 2022 14:40:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=0JTmX/lC0hG9yq+jd3ONDrgjwpA6pJb9bWxC7NEbBEw=; b=WJEsMa2YFI+12uk4elHbe+wsu8NzrGPbtKk/cMhmPnEIxBfwWCE5xYcFcCp3XDF5iP CN0mXiNKtbHN9tg+e23UzyOXo6b2QeWp6Ipx81aUbVYBwWd4kCVr07/ZSDSGjuRUJJ8a kFAUQXmhTozJihzSfUVy8kpGM7tjoXuET30ufEoo64WSNW3XTRcj2y8tZVGeI9/beoy/ zh7gATThbEx6K53xd68hBPQFFEVXbhToF8BWa1jzSOhogTHJgynuUr82tFkfN0Dw6SN2 BNjtlX687++xrsB0EOFJdorTkm+VU9hKyp1c07hex6mxFw8d1ZtO5nbMumLeC1GrO7dn Lp0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=0JTmX/lC0hG9yq+jd3ONDrgjwpA6pJb9bWxC7NEbBEw=; b=TSFY4y7rPI9naF5C9PEP0omjLUixypUI//WOi1jHeZB3IR8aPbfA21Yan3r56jcGXR z2ru1iyPNtNxwumbV/GnIOlkmHhepecwH/NJhAEgUWNsqhJuE2KqdHVY2VnIDiNe2N+v ZFDv+clhRUBRKNDpmunebyuFpTPhMHgIKhcXp5ipz6zHr2xYFRDZ6ngsBOAntuFmmKeb k/efrxkLBUs3OvVaX6iuG7/tNkfOPuS67+UL4+SVJ9aaDll0PeKyTYhPjxPFZLKDna3n RpO2G3JeUChwYf990Cv+UmUi1Bg23SFv14V2KS2CQKc0E8GWUgBKApeoeJt/+k9Y9W+K oz8g== X-Gm-Message-State: AOAM532ubOAIslzaadNEmVGeqIMU9aWxEHFDmCi3YlTai7TmebLh/lIg 95/ifayt8eNphjbRZdD4r7s+Gw== X-Received: by 2002:a63:af10:0:b0:398:91:657 with SMTP id w16-20020a63af10000000b0039800910657mr4452112pge.413.1649194808849; Tue, 05 Apr 2022 14:40:08 -0700 (PDT) Received: from [2620:15c:29:204:be3e:5e1c:99cc:513f] ([2620:15c:29:204:be3e:5e1c:99cc:513f]) by smtp.gmail.com with ESMTPSA id c4-20020a17090a4d0400b001ca5cf3271csm3538893pjg.14.2022.04.05.14.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 14:40:08 -0700 (PDT) Date: Tue, 5 Apr 2022 14:40:07 -0700 (PDT) From: David Rientjes To: Vlastimil Babka cc: Christoph Lameter , Joonsoo Kim , Pekka Enberg , Roman Gushchin , Andrew Morton , linux-mm@kvack.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, Oliver Glitta , Marco Elver , Mike Rapoport , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Imran Khan Subject: Re: [PATCH v3 2/6] mm/slub: move struct track init out of set_track() In-Reply-To: <20220404164112.18372-3-vbabka@suse.cz> Message-ID: <18ede94f-818a-d4f2-14e7-d73fdcd78eb5@google.com> References: <20220404164112.18372-1-vbabka@suse.cz> <20220404164112.18372-3-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 4 Apr 2022, Vlastimil Babka wrote: > set_track() either zeroes out the struct track or fills it, depending on > the addr parameter. This is unnecessary as there's only one place that > calls it for the initialization - init_tracking(). We can simply do the > zeroing there, with a single memset() that covers both TRACK_ALLOC and > TRACK_FREE as they are adjacent. > > Signed-off-by: Vlastimil Babka > Reviewed-and-tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Acked-by: David Rientjes