Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4025034pxb; Tue, 17 Nov 2020 09:20:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDBCCpecTMP5F/18ZFRK44FxMvRDV85WcwNeSSFWWo2kGqysT4wMEn6QCZ7CyS6rG5ik0F X-Received: by 2002:a17:906:3a55:: with SMTP id a21mr19756850ejf.357.1605633659390; Tue, 17 Nov 2020 09:20:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605633659; cv=none; d=google.com; s=arc-20160816; b=hJbljtVieojXXb/O5IObU7fe3NlyvJNsEn0rHC9eFdmBPBp+3ST2XIk7UWE7jjHKE7 IV2sicpxGdfHPBniwglaIlfFa5xPgzEEIy3obgSr4ZHo/j8fyAnnLvnFdtK5LGHoLwRg ftkexf7H7enXAsWm+o95N6IahemA/I0eNxza8G8RdRTBOgLty5qLHqhvpM2xbiZ0aXVu tOj/mAZaA++vVkn/clNe0Ots5oAfJxgs40sZsdeco852L7Ca2e6voi/tsNQMK/6Tc1FI TEVtJ5l9aJroufvlaLYXVRe8G1zMODeZREU8Q5y0Y+ZPM9kn8uvyx7mlJLumQYBr2mUF /qtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HbXTqX8J4PNdelvJC4wHhXHHnug3DEmJJtNJ9Q3CjN8=; b=K+dLR83FtTg+qYpRNjKuA47WctKQhGH7xlrWSSxa5dpz9ugh6rAP45Gbnz4njvJZsq Jo9UkPMO35dnNkn+BPMFwSvChAoGgwcnBc4kd+rIZ8gByZ2vv53R6BPZEIDVfGtCpowN kzX3WbyvovtVlliUHa1iu9roJ4YNkmzTx5Pp3Z3FnoZn0sukU0liPRoeKxmqEFDubzJ9 /IzJLVVfcHdJUQW4oQaaLUzBINv4Xb4Dw3OTJT91LzRDmHjTuJgT0DTxm3emEWptneIp D1Q5pdKKjY0cKHVTZfnRFBD0GADEG3FZ3Kak6fL1Rb9YU4X5/jA4QBrr/X8/P//f14Zq S+9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZlAxl3QD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si1607837ejd.39.2020.11.17.09.20.28; Tue, 17 Nov 2020 09:20:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZlAxl3QD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728660AbgKQRRC (ORCPT + 99 others); Tue, 17 Nov 2020 12:17:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbgKQRRB (ORCPT ); Tue, 17 Nov 2020 12:17:01 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7F9C0613CF for ; Tue, 17 Nov 2020 09:17:01 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id z21so31147917lfe.12 for ; Tue, 17 Nov 2020 09:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HbXTqX8J4PNdelvJC4wHhXHHnug3DEmJJtNJ9Q3CjN8=; b=ZlAxl3QD0Xa5p3JWtOf5QE0KHmZLFmGRQGLhbQLuLtJ8Oi0cUc+DIvI6G6L0gBUaD4 0DmGd8Zfrj6WKdu80A9T0yOKJlXc1SDZxfs177XMqfdFDp6OA4JwaWy+Kuru5FQaNUE3 sZQ0i5Ip2gKp5lDE0VBiTSp0Sn9Cp8GmWvG7uIV+KWpu7vIyERScAzNPZHkK9QljfWWu xM3AFr5VcMMp5CSLJaB75eI/zbsXQkmGzExREmOUFslWDMK/lUCo4vi/x13jo0SiOyBS RyFiihPVhI2NL4+aX/THKDerRaFF/sBunp2L/1BgvQmJf40U9iPFVo1YfVB0ylGrKsOI YFIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HbXTqX8J4PNdelvJC4wHhXHHnug3DEmJJtNJ9Q3CjN8=; b=CSyMv9dzWolak5CpDkSJWEmHfCZm7JM7tRoFCpL9svH2nSxRdwF204yh60pHyo61qU JhTVGynYo2mhCubd6pJk0z7HgQybOpVmcZhw7U+3yQIIzdzz84gwq0iTTd1k6edKRt9p iy37+apXC9pov5xs1+XfseP6VUFiUr/1eOkDI9TiJJkLCDTHIwN3RchYcKumrlprnrli 0fb6EaHv4JHq3VrXwII5i5SJ2yV46zAXRPkw+dVW7QYMJKGsyNFah4kdYsUV1xD8DkAY K8P6R2EFbh0QOK9elYT4/eCHNIYhdSQZ3f5QXFETnCdsXfyZxLaovfplWJmQBGtYeBbQ vSbA== X-Gm-Message-State: AOAM531wXESEum7pDtu58AWWQFlp0whhk2t3YUxixCrPRxFOcgP9QjI3 i2CONxOCRMZ1xmZXS2cXM95drBlgalfJ5hVJ5oBSkQ== X-Received: by 2002:a19:cc42:: with SMTP id c63mr1938796lfg.521.1605633419249; Tue, 17 Nov 2020 09:16:59 -0800 (PST) MIME-Version: 1.0 References: <20201110195753.530157-1-guro@fb.com> In-Reply-To: <20201110195753.530157-1-guro@fb.com> From: Shakeel Butt Date: Tue, 17 Nov 2020 09:16:48 -0800 Message-ID: Subject: Re: [PATCH 1/2] mm: slub: call account_slab_page() after slab page initialization To: Roman Gushchin Cc: Andrew Morton , Linux MM , Johannes Weiner , Michal Hocko , Christoph Lameter , LKML , Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 11:58 AM Roman Gushchin wrote: > > It's convenient to have page->objects initialized before calling > into account_slab_page(). In particular, this information can be > used to pre-alloc the obj_cgroup vector. > > Let's call account_slab_page() a bit later, after the initialization > of page->objects. > > This commit doesn't bring any functional change, but is required for > further optimizations. > > Signed-off-by: Roman Gushchin Reviewed-by: Shakeel Butt