Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1131317pxy; Wed, 28 Apr 2021 23:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3DBY1HUNoS9zfuTAsgJ1vni5EVmYWqpibxiBfGVZoVH9gji7CGoP8KI6BwmXfxo6g02mT X-Received: by 2002:a62:2d6:0:b029:204:9b3b:dced with SMTP id 205-20020a6202d60000b02902049b3bdcedmr31904947pfc.36.1619679106687; Wed, 28 Apr 2021 23:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619679106; cv=none; d=google.com; s=arc-20160816; b=wJSJgaPxFigbNv3Gde4/NXezdcibZ9SStCN0v+v2JeLQQs0DhPb9y/GiURlbBhrF9Q wMPRE36tdLmezRddHu9wlKtYdEag6iGWcM6K5Ce+bz4rCinPZ3UGUh0W8doyPmIx2eDb ME4P+2NLIy+ARNj1g5omU/s9KSA5OrnIx1oL9BJdgqehQd68UlBWMeEUHXyKdm2dXx1C av7b7xMPOcviFZfNbRcyDU3Z+kM/r/w6/Drg+5e6OtgT8jkXXXV4uysd7MCTNVtzC3Hd 5RYIdYAM6BY2n0mu08D2+B8jrQYqzKr+mrVN+0VlSp36TtV+uUHhcr+fCCWOgZyBFIdr iVuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MUKh3q8a4SHYsvnkYAfxbKChRjzMGvWP8fV8eM1XBoo=; b=Wy7QMIgMmDheJ+fGi2rfwbt47XOFu3isso0ugUFRwZ6qbQ2JpaJ4f3BETzF/8Zg/xl lRgHE8OjI7kR0Qj4MD9Qgeqr2Ult9IUulIJyadLchRm1/ucwl4niUCl6rJahZOK9ghCr bXLAzZ/wHZ1tKmI0Rz6iG2ifjPv99aYEO9ZI8e9qEMMvAPWJFIaDlJqIh5eL1QYUuAM1 XRqZV+8TUSULMgrysq9NUHciD6PFzKUPtaL3E6n/FMp9SoL8kEAO9MEMrY4SMdtWwhkl 8hnUfzXlQwES+JzOGu0WKZ0B6nxVxDlbWhs1UPhYpqgO9RqNqF6h6cmT0TwyQqUAqDFZ /W3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lzN0Eb1b; 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 l2si2341446pgm.471.2021.04.28.23.51.21; Wed, 28 Apr 2021 23:51:46 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lzN0Eb1b; 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 S239030AbhD2Gum (ORCPT + 99 others); Thu, 29 Apr 2021 02:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhD2Gum (ORCPT ); Thu, 29 Apr 2021 02:50:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D704C06138B; Wed, 28 Apr 2021 23:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=MUKh3q8a4SHYsvnkYAfxbKChRjzMGvWP8fV8eM1XBoo=; b=lzN0Eb1bVt0buxA5hryBAMp41/ kqRV2TMwDqX055zwFHsdTx5ZEYzk6OGKMxMYfoWZPGyKzZ8WHCb01+PCKPQ0tfWuCk8ByVTof0/oZ JWd02LFOJqD4HrfZIoPGorY25qNMw1co5KiaG/jhbSwihC4p4Zi2kAPNmTUb4oqssUnF2CWkkEVgi 2tL+42POhWbblvqG4Ldl0fy/4VryFiYM4DaznVlbi4J2nZeSUn+uPkMdFc6Ex8leocm4jt9alMRwa RYvVlY3SFqU4qHhcaFFoSte8wuiBfGNs3VUvshTMs9vSYnMcDQ7pFbwg3EB3eQ5yZbuESQl5Jbp+Y nQDQ7IfA==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lc0Sl-009IgJ-Fp; Thu, 29 Apr 2021 06:48:13 +0000 Date: Thu, 29 Apr 2021 07:47:51 +0100 From: Christoph Hellwig To: Muchun Song Cc: willy@infradead.org, akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, shakeelb@google.com, guro@fb.com, shy828301@gmail.com, alexs@kernel.org, alexander.h.duyck@linux.intel.com, richard.weiyang@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 7/9] ida: introduce ida_max() to return the maximum allocated ID Message-ID: <20210429064751.GA2216380@infradead.org> References: <20210428094949.43579-1-songmuchun@bytedance.com> <20210428094949.43579-8-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428094949.43579-8-songmuchun@bytedance.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 05:49:47PM +0800, Muchun Song wrote: > Introduce ida_max() to return the maximum allocated ID. This will be > used by memory cgroup in the later patch. Please also add a lower-level xa_max as this funcationalty would also come in handy at the xarray level in a few places.