kernfs: use idr instead of ida to manage inode number
authorShaohua Li <shli@fb.com>
Wed, 12 Jul 2017 18:49:46 +0000 (11:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jul 2017 15:00:03 +0000 (09:00 -0600)
commit7d35079f8277b653d6a3075eea9edd4dbf7c2b29
treeba7fa95ee75d62694c4fa83e936709e9b4279954
parent0a07b238e5f488b459b6113a62e06b6aab017f71
kernfs: use idr instead of ida to manage inode number

kernfs uses ida to manage inode number. The problem is we can't get
kernfs_node from inode number with ida. Switching to use idr, next patch
will add an API to get kernfs_node from inode number.

Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/kernfs/dir.c
include/linux/kernfs.h