Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp6172rdb; Mon, 15 Jan 2024 10:02:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNTNV2hqXgCaBI9jMLDKiXh3k2kztQ6t2ArOszFFvl5RYx7iDCvQvUflEwnklVAVdCq3Q7 X-Received: by 2002:a67:ee19:0:b0:467:c052:f12c with SMTP id f25-20020a67ee19000000b00467c052f12cmr3668504vsp.62.1705341730582; Mon, 15 Jan 2024 10:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705341730; cv=none; d=google.com; s=arc-20160816; b=Gv57aw8+EI+sF0ChwWiSq4sBprX/VvhdGEd5VrUpIQhBTWcVXlBDmxgHHIGsDlSFo2 eZGAWTbcb/jiXCHMB2HP0X0IK1jCnuby8KCjDT8IDseDhsmZjaw6sER0zktueSIgntFL ngca3y077TFeK/s6oePPu+VOxne9mTlMIbmTvc47W/wpjfxF+kRx/a8A0VTX2CVdmKNj +wqHozw1DkCMF8jNLvWv7Wi3AAee4d9CLLJBQgedZVdSUD60i54gf3HvVy4uz/1ZuckN kOLaUxd3jxsNZHnAm/vUBip4KZ2Y7OuMX4Td6YuPpZSRyNwiL7Oizy4G9uwNHwRTl6DG 6zdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LOwb4W3+vxfYh5RTX/DUVEXG+wV8C4bNnq870pAU/vY=; fh=m9/lUqavUUOGu9F1LNNWpafsuxLWSI9CE/Ra+UYWRCQ=; b=BKKEqO4S7losEu0rLWfT2iSpstgEanwL5tSBetjk+B3EJ+aVwPciVoTaTBXeEccwQs hO/+1t/nP1NzPleOkqu0IpNIWEO7IeZZUxZBwgr6qZH/SrGtzftctnKRkTp/nuDF2yHD 2mV8RLN4DKqEkZ+AqpboHs4GWPUMHwk0aD1GMgptLtYNAfUSzF1IvJBdAIkWOg5ptq69 9ANZ8t5zIJBO913aHzrHUeMy9wy/zWctSOIJVIm/fzHcN8bc9JwmHWwfJ3tBNmVZT7lG 2CKFoi8AjCYQrXzjQBtykKGNsHyU7pjdoSHLBYG45Y84VgJSEdqLdzsIqt0qXLXGbTaV XiOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hK2nUdml; spf=pass (google.com: domain of linux-kernel+bounces-26345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26345-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b5-20020a67cb05000000b00467864902e5si937604vsl.112.2024.01.15.10.02.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 10:02:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hK2nUdml; spf=pass (google.com: domain of linux-kernel+bounces-26345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26345-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 143191C2201E for ; Mon, 15 Jan 2024 18:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0688918C19; Mon, 15 Jan 2024 18:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="hK2nUdml" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8325C1804E; Mon, 15 Jan 2024 18:01:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=LOwb4W3+vxfYh5RTX/DUVEXG+wV8C4bNnq870pAU/vY=; b=hK2nUdml1IsynGjhwnfTZ/JLLR 9Mg86i93Z2bAFKkOVOVUsPOJMpQen/zFgulVkHVbi2CBAJ9fDFRFSdDSB8p10bXnX1pbWvQ2Fu9e7 qPXCBq6n5CgGggxbbwcgtXcE9gE1F/RkKxU/EPP7dGg+V/YMo1dYC4jFssCwRMwiIvPtvKvqMExqh XROIt4D87DhJ6kvB4cXv3pOLctw3aMH/wCMZnphtFlHaxn3mmpf6X3LChfxTyw58Srz7q9mnILJAA X5hQPpgCU9STZH9Syb6lBEAe1VSmaJFQiXc+cZgewfBEbOF1uqPybR+pwDGTg5Gvi64is/pT1HgcM r2eXHVFQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rPRH4-00AQHE-6S; Mon, 15 Jan 2024 18:01:26 +0000 Date: Mon, 15 Jan 2024 18:01:26 +0000 From: Matthew Wilcox To: Christophe JAILLET Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] proc: Remove usage of the deprecated ida_simple_xx() API Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jan 15, 2024 at 06:53:37PM +0100, Christophe JAILLET wrote: > ida_alloc() and ida_free() should be preferred to the deprecated > ida_simple_get() and ida_simple_remove(). > > Note that the upper limit of ida_simple_get() is exclusive, but the one of > ida_alloc_max() is inclusive. So a -1 has been added when needed. > > Signed-off-by: Christophe JAILLET Reviewed-by: Matthew Wilcox (Oracle)