]> git.itanic.dy.fi Git - linux-stable/commit
ksmbd: Remove usage of the deprecated ida_simple_xx() API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 14 Dec 2023 20:50:55 +0000 (21:50 +0100)
committerSteve French <stfrench@microsoft.com>
Tue, 9 Jan 2024 18:52:33 +0000 (12:52 -0600)
commitebfee7ad2722f84064d241b5319a7085b881b584
tree1865562aef3e82378e74d8b931815d1df58e8b98
parentb6e9a44e99603fe10e1d78901fdd97681a539612
ksmbd: Remove usage of the deprecated ida_simple_xx() API

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 <christophe.jaillet@wanadoo.fr>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/mgmt/ksmbd_ida.c