]> git.itanic.dy.fi Git - linux-stable/commit
rbd: remove usage of the deprecated ida_simple_*() API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 15 Jan 2024 20:37:47 +0000 (21:37 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 21 Jan 2024 23:14:10 +0000 (00:14 +0100)
commitcd30e8bde28ac361e15d67ee5c00e0125ed42548
treede21388e29507395d5285aa20204dbaf7a9029c7
parent6613476e225e090cc9aad49be7fa504e290dd33d
rbd: remove usage of the deprecated ida_simple_*() API

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, while that
of ida_alloc_max() is inclusive, so 1 has been subtracted.

[ idryomov: tweak changelog ]

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c