From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="hK2nUdml" 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-fsdevel@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)