Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5542624yba; Mon, 13 May 2019 12:43:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3PFpq95toBC7lqe5l5RF/FcNRfWf4vCh4uwbrwCmijbGaiU1XIJK6oBdQrFJqKxzFlQ8/ X-Received: by 2002:a17:902:424:: with SMTP id 33mr33166424ple.102.1557776630875; Mon, 13 May 2019 12:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557776630; cv=none; d=google.com; s=arc-20160816; b=rxo/+vTpJoaTD0TgQ7jSLO4Rm4Df/wqxdhlq4DKr8Ajuiv4Q9l8fVWt1GAioP4krtm g0vbe9NgQTtoZx9uewm4Xq12AyY9eRD1bTM/3ZBetlocy6iWdhgCdcJPfXyw16t4frrY MHQVuvJF3GUP3Ubi5IYJbNoawc/P4BFcP0HnOCoptSgPipUrPCJ6rGEdXH+AgU+7OlBo a1fYO1UpYEy0GuvEEMCfOFFp+HqWd9220Y59LDhw58ku/Gkspu0A4FJQWyXmXZOxG6Qr H+Q1KZxYvZsUmcZzfEl75HrLmYYxx4Jp1phAqIwFb6l0yQEMc4q9JIPRtLR3KxLeLYzg OTDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=PlYvmqxRpVISnjsRFpBbrKcWou6q8G660sOR1uIfQB8=; b=Tp2lOPvnt7ftu2Vd0Fb8uP6+Dm0UgMP+cbY/nwAWIbapMpoUZ/O32i181tbDNxWvc8 c88o3e/5hGhoFvK7D6UgZYLbqZIHlJMg2GgG2m8YzORJbB2Kv6ji+4TNvvJbKFKKnvPq MoDoJiCY/I2tJX1FoPkxx+MxL/8t33fWkveHYxP39h4mMzyJ3QXeYsUruNlu63VnnD5+ GjZhjemOtjgfAiLsdA78L9SE4TPRJ/ynU5Kfuf4zRjfQddSnDxRhC5W2+WdwgL9vpXQa L0zJ/aslMcn5mHjw7E6fD35NtJaFKyn2HPQYLTRogz9nsOZ6RBRPWkQc8v6wqHsaqHUN LCeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=b8UGgDxX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si11630289plr.378.2019.05.13.12.43.35; Mon, 13 May 2019 12:43:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=b8UGgDxX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732223AbfEMSBG (ORCPT + 99 others); Mon, 13 May 2019 14:01:06 -0400 Received: from a9-30.smtp-out.amazonses.com ([54.240.9.30]:49352 "EHLO a9-30.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727668AbfEMSBG (ORCPT ); Mon, 13 May 2019 14:01:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1557770465; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=PlYvmqxRpVISnjsRFpBbrKcWou6q8G660sOR1uIfQB8=; b=b8UGgDxXFtgOe6/nHEgwLitQKKdP6MaTm72eml72TE9fnqIiPmXw8fT7pLun0Kck rTcHdXuzgkeKJJQmYht5nMnPLcckFMsU/bqzVWYwIlrnDkBQuekNUTWLhxi0ugBfjUe 6vhOsZoNl7l4/KTlnny/6ogqiyJ4zFkjdnQwfoKQ= Date: Mon, 13 May 2019 18:01:05 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Roman Gushchin cc: Andrew Morton , Shakeel Butt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Johannes Weiner , Michal Hocko , Rik van Riel , Vladimir Davydov , cgroups@vger.kernel.org Subject: Re: [PATCH v3 4/7] mm: unify SLAB and SLUB page accounting In-Reply-To: <20190508202458.550808-5-guro@fb.com> Message-ID: <0100016ab25aef20-4552213a-13e1-4aff-ba52-e970f3ac7fd4-000000@email.amazonses.com> References: <20190508202458.550808-1-guro@fb.com> <20190508202458.550808-5-guro@fb.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.05.13-54.240.9.30 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 May 2019, Roman Gushchin wrote: > Currently the page accounting code is duplicated in SLAB and SLUB > internals. Let's move it into new (un)charge_slab_page helpers > in the slab_common.c file. These helpers will be responsible > for statistics (global and memcg-aware) and memcg charging. > So they are replacing direct memcg_(un)charge_slab() calls. Looks good. Acked-by: Christoph Lameter