Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6366915rdb; Thu, 14 Dec 2023 16:58:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHL/HVrMxtbSEfnM2ZgQver4/wTZVQYL65y4X/nmDEfwfavfM9o5SLvpnQl71tvW482AZP7 X-Received: by 2002:adf:db4e:0:b0:336:4476:ee57 with SMTP id f14-20020adfdb4e000000b003364476ee57mr1308141wrj.112.1702601925616; Thu, 14 Dec 2023 16:58:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702601925; cv=none; d=google.com; s=arc-20160816; b=Ng7TpErCf95pUNrZDVFe8gBjpt29WEvXaXOZk5uJbRpl8svLs/UwV61DTbWqB8Gxey ZufL4Yko+sfMGzPvKEOnEwkyEnuPY8KUlZOc+xTUdNj7/6jPtT9R06cPD2ixQOyqaAnd nF2B6tNUTFpPo/tkStICAEtNuhb1fCF6vCL68n8k7YgbdHMieO2oL9cGpEkGpPkKPjS7 9WtP4RBDn3fnRGguUDoQTjce/8+9LHcqK2qr6wcAfN1nuNa2EMeEHEVuQOquPOPrasXC IY1jePBdXESdkWH6TcrVrjBqQCEVDJS2kSm8O4Xcfny/4Vc2EWz3FEWD/Yv1rxL08YGi HggQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=q56iNOgi3CDlqut6FMHVRVsKl4pDRDcxfCKmS0z4LCg=; fh=827Pqa+XfDoi6XFEOHzU2G0141uP5MYEfQwjWtwTd+c=; b=xsfwV5HqEzjfwBVM5B9bXlVVPrg16joit9/dXPmahugoVp3YXg5+VhD1rexgfkMdn0 A5Z4VdhFNZ2/y645a8rXm1WqFjb8uyVAewFCYb7YJr65Vb94ni7/K1zfF8d7wQEe/2jp jT2ADclBmVUQcDI0Ai9aeRAaGe1UGb+5+aRNAodYosNeTy6QFOR4QeBGYcwRkl3WxxaQ OJlz+lxtVRcQRkON/YzayVIxmTFQDG22KigqH0n6z6Y2uDd//6YplyFOkTJ9Pz/7ll2I 27fXbKWehv+QF+x0Ho/J2M+JY2fVe3M8krnD9fck2cXFQGGgrsk65TcnCss4nHepKkUl QnIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sAJgrFuq; spf=pass (google.com: domain of linux-kernel+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t3-20020a50d703000000b0055238966e24si1547871edi.476.2023.12.14.16.58.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 16:58:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sAJgrFuq; spf=pass (google.com: domain of linux-kernel+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4FD621F22BCD for ; Fri, 15 Dec 2023 00:58:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04B6E809; Fri, 15 Dec 2023 00:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sAJgrFuq" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2CA43363; Fri, 15 Dec 2023 00:58:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2EF8C433C7; Fri, 15 Dec 2023 00:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702601912; bh=q56iNOgi3CDlqut6FMHVRVsKl4pDRDcxfCKmS0z4LCg=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=sAJgrFuquMte/MZ0qR0ZkZ+lMGS95RuQWoOi+dieylTdd1TPtM++RpJi/l1SB03XL ZJgfdBDOItBWes52UfJ4zGswO1imr/fwpZFToZCpokAiVlXA7SRECdTSkYCuDIyGkG +J9TsKqb4aad/CELeliVvX8xr+8f9YkVzx4O9aeeXjEMP8vk6cVYvp2H/By2K2ZNdO IZ7Rje+t5V/+tPjmNOOAkvzl0TXQOYVgGHee1cBciw+ZaynCTGx0amwbDeLPf/cRDr UhI3eZXNfSLFTSpMqNkFQPwnMX9BkejN4n2v8uv7A04x8Ci1p28wNQ9iElzTpk1+X2 bYVuLZsAVX1dA== Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-202ffc46e15so69627fac.1; Thu, 14 Dec 2023 16:58:32 -0800 (PST) X-Gm-Message-State: AOJu0YxHBGoHbQG7sx9WzMI9KvgTG1DNf4gf/CngLxWHpsvDLa1Kgx5z L+wAyP9zNQgPPgPqlr5RbDwS4DdwQbe+q0WKNxY= X-Received: by 2002:a05:6871:691:b0:203:23ff:589b with SMTP id l17-20020a056871069100b0020323ff589bmr2654657oao.63.1702601911967; Thu, 14 Dec 2023 16:58:31 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received: by 2002:ac9:7f88:0:b0:507:5de0:116e with HTTP; Thu, 14 Dec 2023 16:58:31 -0800 (PST) In-Reply-To: References: From: Namjae Jeon Date: Fri, 15 Dec 2023 09:58:31 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ksmbd: Remove usage of the deprecated ida_simple_xx() API To: Christophe JAILLET Cc: Steve French , Sergey Senozhatsky , Tom Talpey , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-cifs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 2023-12-15 5:50 GMT+09:00, Christophe JAILLET : > ida_alloc() and ida_free() should be preferred to the deprecated > ida_simple_get() and ida_simple_remove(). > > This is less verbose. > > Note that the upper limit of ida_simple_get() is exclusive, but the one of > ida_alloc_range() is inclusive. So change a 0xFFFFFFFF into a 0xFFFFFFFE in > order to keep the same behavior. > > Signed-off-by: Christophe JAILLET Acked-by: Namjae Jeon Applied it to #ksmbd-for-next-next. Thanks for your patch!