bcache: Remove usage of the deprecated ida_simple_xx() API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 9 May 2024 01:11:16 +0000 (09:11 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 May 2024 01:15:01 +0000 (19:15 -0600)
commit2abd9a197d828ed5c2cbe922368eb28d02861a28
tree882cb451c6c0baa672f50f56ac5d626d6a3f06ad
parent504fbcffea649cad69111e7597081dd8adc3b395
bcache: 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().

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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20240509011117.2697-2-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c