Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1130233ybs; Mon, 25 May 2020 07:50:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl6R+zir4ufZpqpq/FsqslTR7ZmaFppX1QSRkYU2xDlJMXrqXbAxQVeF9KBHOm31O9gr1A X-Received: by 2002:a50:ace4:: with SMTP id x91mr15557699edc.361.1590418249299; Mon, 25 May 2020 07:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590418249; cv=none; d=google.com; s=arc-20160816; b=g501kr15ElJj8kBDI8UpySCt6RWLQM8yyHiYF+RO8M4iz/PXYeBwM8cJrUfCrBkcJH ZO/BkKX7rRV+g6cJzV3BNGfcYjzv9vYfu8lxr5tnPe7RThL1ZEwX+724WSIsKXMNHL7G 30LDvpqKFFVBJcX2GDYXcXkcOUVJhohuW6mYuNSVeAiiw4NwQvRqbotov4InDrCBWge8 lwho3X2sBv5N6/1+buF3pjNAo8BGTO7nQ2WV2gi+3h68S1fCYJd2HCy728Q/Rsw4J064 UlQbLi0tipD8VlL/6DIBDEb4z3lN9tiTVin22vicQ+7/rzteCkl9Iy45apg4O189Ozq0 qT0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yHp/VrZ5RLLgQkqVPb+XnAhXg1mBOdIIKB6UuYe64fM=; b=qJYNBpCoFDqNnhiM/WjOKavv8g/lkDaDDmNfg+bm2DJhZ9JIW5W5W7Af9uq6PdeUI6 vIXMAUiqCc+STmtAjiZg29vxMVTHU43/U64BzGApv0Ty7qa/z6dQtg1v0usfjLvffz8w e1DJts3i/OxcV5nsVMOkS12eX90nfdjltEIzM6ypS+ezx+RPwxOFRDdCd18UAQ0qil3A VG5CTOr9cCjvNlQHzEhg+AWy0+nGaSXaHFCKUL7LZ9tcu+EhF12U70YlcNPel5TU2C6j 4WM16k+wTNvo346tFm9Z37YBHhlveIISgiNbnSr9BooNtEyiM4neetvryxkGa5suklsA XUfg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si10317329ejd.359.2020.05.25.07.50.26; Mon, 25 May 2020 07:50:49 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403954AbgEYOqs (ORCPT + 99 others); Mon, 25 May 2020 10:46:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:40338 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403961AbgEYOqs (ORCPT ); Mon, 25 May 2020 10:46:48 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 908B6AC9F; Mon, 25 May 2020 14:46:49 +0000 (UTC) Subject: Re: [PATCH v3 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages To: Roman Gushchin , Andrew Morton Cc: Johannes Weiner , Michal Hocko , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org References: <20200422204708.2176080-1-guro@fb.com> <20200422204708.2176080-8-guro@fb.com> From: Vlastimil Babka Message-ID: <49f98033-c39e-b60c-5142-552e586bf434@suse.cz> Date: Mon, 25 May 2020 16:46:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200422204708.2176080-8-guro@fb.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/20 10:46 PM, Roman Gushchin wrote: > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -1370,7 +1370,8 @@ static struct page *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, > return NULL; > } > > - if (charge_slab_page(page, flags, cachep->gfporder, cachep)) { > + if (charge_slab_page(page, flags, cachep->gfporder, cachep, > + cachep->num)) { > __free_pages(page, cachep->gfporder); > return NULL; > } Hmm noticed only when looking at later patch, this hunks adds a parameter that the function doesn't take, so it doesn't compile.