Received: by 10.213.65.68 with SMTP id h4csp1478439imn; Mon, 26 Mar 2018 08:16:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELuv2BT9lHnF7xrQ4scWEx5vBR+PgA/ZGhy46vXTZTIT1dQ/JkArMswO0bXsCtAlmVOfinNv X-Received: by 10.98.33.154 with SMTP id o26mr33625584pfj.54.1522077413812; Mon, 26 Mar 2018 08:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522077413; cv=none; d=google.com; s=arc-20160816; b=By6SPf6C5xnn5vCA56auxPnTQ7Ezx9gfH25CfEE1WT/l8NHhDmyly5XZUZm3DpTVwi G11CrX85SPF4UcM7N4qImS2fK2OHwkhjvOYwR7KhN1kN4ivRWJ5Zz5tJ7SUdQVpjJsrm V4EthWJVbpqghwdkd2ZsHnfeVjo5a7WRv+e0QNi0t8B9zrOs4DaSrn5o8tSnLUKb9ieD ahpyWtIwl+VoeNTEbebU+k8OXhrJIRUOgyv0/+1/0WpnOY/3cKasPBFLzgctaTPpIvYZ gTj3iilj30uaVCYdCTLPneuSJT/w9rooVLrfaUYDP2izayNUTRYqIrmqdt9+rh31b+J0 xoMg== 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:arc-authentication-results; bh=UIMNfl+C8xXSRXqgAlFmiH1QE7+FWkF2/BC5KomN4iE=; b=q6iOHqsZublvVpplE4/c2nYE7oINXI6zx2WMDMhtd/Rr0NKINZG/Lj6eLv8L77lnw1 8T4fgm16HvyQo0syy+zItmS1mZvfDAApXrZQhP5t0WLWITh0ijm654AdaSL0RkvM05aw vT8D0GVVurjt2xuvwA12gMnuqyQmcH2rRj9BecWE1tQu9ky68HRMXybIYwxQhBhddeiF yO+UY6B1MFT4WsapTb604K65hSs5Pb/AEIrK8lNV0MpvM0XicEyk3DrOiCjVvmodxZYC Onllh1emmSn371tVNshtGYXq90eBA4sLlpQKB6YxwD+gjmtxVf0wYnxb7JS/ovf7C/cV uh8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XCVXzt1T; 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 bi1-v6si2348456plb.184.2018.03.26.08.16.38; Mon, 26 Mar 2018 08:16:53 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XCVXzt1T; 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 S1752192AbeCZPPm (ORCPT + 99 others); Mon, 26 Mar 2018 11:15:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42956 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913AbeCZPPl (ORCPT ); Mon, 26 Mar 2018 11:15:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UIMNfl+C8xXSRXqgAlFmiH1QE7+FWkF2/BC5KomN4iE=; b=XCVXzt1TFU1MvCZjiK+mlQp6W EflNZgdUl12NBp9ePwUnk4V+Gi02Iyw2l89mvBJ79Flrc45scK4JcZzBpc/jOdcjLufwplNnqr/b5 55jEaBscPLor2crfXxMohP1wm+osFZOZra9c2sfVjtYESoaeFEAf2AZFNJ9JGZGOszdZp6UMEg5SW pIDKY3jMf6oD+7PXfaSTtsPBgBUGqSQU+AFszQJde5/Apv3Px4v8ra2/RQtNlhxLGeduq+Kc4w+yR JYXvv+tFUNVGSuImBmt4zbTFMELcdQITNItnsmcvYrxcj9q7K0qv+7z6KqBXGEipFgzWnnaNL+2ci 41EIrJVSQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0Tp0-0004q6-B4; Mon, 26 Mar 2018 15:14:06 +0000 Date: Mon, 26 Mar 2018 08:14:06 -0700 From: Matthew Wilcox To: Kirill Tkhai Cc: Vladimir Davydov , viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, akpm@linux-foundation.org, tglx@linutronix.de, pombredanne@nexb.com, stummala@codeaurora.org, gregkh@linuxfoundation.org, sfr@canb.auug.org.au, guro@fb.com, mka@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, chris@chris-wilson.co.uk, longman@redhat.com, minchan@kernel.org, hillf.zj@alibaba-inc.com, ying.huang@intel.com, mgorman@techsingularity.net, shakeelb@google.com, jbacik@fb.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 01/10] mm: Assign id to every memcg-aware shrinker Message-ID: <20180326151406.GE10912@bombadil.infradead.org> References: <152163840790.21546.980703278415599202.stgit@localhost.localdomain> <152163847740.21546.16821490541519326725.stgit@localhost.localdomain> <20180324184009.dyjlt4rj4b6y6sz3@esperanza> <0db2d93f-12cd-d703-fce7-4c3b8df5bc12@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0db2d93f-12cd-d703-fce7-4c3b8df5bc12@virtuozzo.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 06:09:35PM +0300, Kirill Tkhai wrote: > > AFAIK ida always allocates the smallest available id so you don't need > > to keep track of bitmap_id_start. > > I saw mnt_alloc_group_id() does the same, so this was the reason, the additional > variable was used. Doesn't this gives a good advise to ida and makes it find > a free id faster? No, it doesn't help the IDA in the slightest. I have a patch in my tree to delete that silliness from mnt_alloc_group_id(); just haven't submitted it yet.