Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2453473imu; Thu, 24 Jan 2019 13:05:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN49H3QYt61EUVBZpISJnEGQorRGg6qu1Ei85FvkU2B8DJiUaCt6cwf6hKJacV/YcwcHCPhG X-Received: by 2002:a17:902:2c83:: with SMTP id n3mr8191684plb.104.1548363914437; Thu, 24 Jan 2019 13:05:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548363914; cv=none; d=google.com; s=arc-20160816; b=nsq+yp3SHcD9VKHDTPVaHvd/He0XyDJqGP7kze75SPUi5bVSgnG/LuNj4f4MQJSKBj 665xGX4Ey8xbcKohIufw/8TF5gnBsuvcH4d3uShjrocT/dprsZpCTmrQ4prUKPklpEk7 8LZNF5CmU3aIujtmjBo8ZobXOoptW3VXv4SMslycbrkTY6XazT7jy5+MFm9ib/h+LrA3 QZlB1+2n6YFWs4SnqzXAjfDdi9tz1S8FS/QG6ManWRt27SKXy2eW6HoUuheyqBT7b672 1Mmv6P07QuOLYOiVI0rZAJL2Dj3nAlSi3c8eSAWtNz2gjAB5DGfYzOVPdHbISMTBSces lwxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=On+Ju2/jG/TvajQP/wDisjpcbshjNNlG5MNkLQVn1Nk=; b=FaGjtKQepwN+hRKUKk/u00ljd0KC7XjA4nzE1Yzs/x+fF0WxltbkzN40UQx9cl6dv8 tDEq1lDCRSqZI/Qh7pzfDEwMLa14zMtJDyG4fyEe66OlrPBppSUjDucX/2aYMDaeqcm4 2HagFnrMFdsfNa5ivf7Zxt7bNtoHwnERsbRU6sTeWFzuekJBWx5Re9d1knDtr3gYWVrO /zzNciZJaiTttr/9nazzHDwB0l/Bf6ihp83YJJxcodHR+rK2WG8aWFyvIEnnY0dwX7gk xdAAi7oDKzIhCojT91qSixeWPjLNTLlSYNhesGma9UpwMt/jljC/oLlsWKpUk1Y/3ESz PcUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=dKMD2Nmb; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20si18065919plp.415.2019.01.24.13.04.58; Thu, 24 Jan 2019 13:05:14 -0800 (PST) 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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=dKMD2Nmb; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727719AbfAXVEy (ORCPT + 99 others); Thu, 24 Jan 2019 16:04:54 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:37962 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbfAXVEx (ORCPT ); Thu, 24 Jan 2019 16:04:53 -0500 Received: by mail-yb1-f193.google.com with SMTP id x9so2965108ybj.5 for ; Thu, 24 Jan 2019 13:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=On+Ju2/jG/TvajQP/wDisjpcbshjNNlG5MNkLQVn1Nk=; b=dKMD2NmbO5prZaNx2YHoPu2Hmaa+Hi+8SXHBi9aLBU6rJpU4N1Y0Gr3NycZAJALkAY zS2f3R6QFXE36JxGApdfRH4tIGW8VwFRUZLJe8pvmAU8u2WaIzJHOf5pKefG9cLHd+A9 Z+KjGJqf3zbaYFr4dpsoRnXaf8oFWzbJ+RNVa7D+4AF/aIve8sYIVe81/5RigHbiA8IU xbsA9Okfw3if8dRvVvUfSgbTiANPa1nCm4qks1lv9ghBohqHmTB+wT2ZQSCZTFjsVyJx cC6PuQ68Y+cNr4syjsJ2OoqZ2KTH9X+lNGmiXIOEDjHQpUs09L3tISJCkalB+rZ751Pc Z+sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=On+Ju2/jG/TvajQP/wDisjpcbshjNNlG5MNkLQVn1Nk=; b=rHR5p2RNcSJB27N/rX4pGxba9uDlSY7B++q70P8qMjeXNf8E3Wv5SSp3zzKqNuIlN0 navBpCFjz5UOhH4KPKSjHb+8GLQdsVJzz8KsTcGWM7mS3G2XK63xahak3/OKqXjdtPKJ Fb9szpDF+kb0/3L6tWEfE+E0qMGU9OUWH05csWl/PUy5yKRcB3OidNwaXOodygS4p+fI YvZO+oWA1PsIhAPpCpSw1Ylbus85Gx2p1DxHfNhTBP7LPJ2GoOrIBgjH72d6U4eHA3Zm uV0hPXOZiW0C/KCmvZaPes+0GrM8EmksmM0VCpmF+/BQGq5CLGHHtu2Zxkp6R2eLOQgk tHUA== X-Gm-Message-State: AJcUukcTF6T8zUksvb4audQ8LTSqyWdTIjApKpPMsvn0iHw2G8lGVeOo 2mtGg8kJQpzYPI+nUT6KzgjTGA== X-Received: by 2002:a25:6642:: with SMTP id z2mr7716983ybm.131.1548363892149; Thu, 24 Jan 2019 13:04:52 -0800 (PST) Received: from localhost ([2620:10d:c091:200::5:9b5d]) by smtp.gmail.com with ESMTPSA id x133sm12541815ywg.57.2019.01.24.13.04.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 13:04:51 -0800 (PST) Date: Thu, 24 Jan 2019 16:04:49 -0500 From: Johannes Weiner To: Chris Down Cc: Andrew Morton , Tejun Heo , Roman Gushchin , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com Subject: Re: [PATCH 1/2] mm: Create mem_cgroup_from_seq Message-ID: <20190124210449.GA14136@cmpxchg.org> References: <20190124194050.GA31341@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190124194050.GA31341@chrisdown.name> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 02:40:50PM -0500, Chris Down wrote: > This is the start of a series of patches similar to my earlier > DEFINE_MEMCG_MAX_OR_VAL work, but with less Macro Magic(tm). > > There are a bunch of places we go from seq_file to mem_cgroup, which > currently requires manually getting the css, then getting the mem_cgroup > from the css. It's in enough places now that having mem_cgroup_from_seq > makes sense (and also makes the next patch a bit nicer). > > Signed-off-by: Chris Down > Cc: Andrew Morton > Cc: Johannes Weiner > Cc: Tejun Heo > Cc: Roman Gushchin > Cc: linux-kernel@vger.kernel.org > Cc: cgroups@vger.kernel.org > Cc: linux-mm@kvack.org > Cc: kernel-team@fb.com Acked-by: Johannes Weiner