mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
0a07b238e5
commit
7d35079f82
2 changed files with 13 additions and 6 deletions
|
@ -163,7 +163,7 @@ struct kernfs_root {
|
|||
unsigned int flags; /* KERNFS_ROOT_* flags */
|
||||
|
||||
/* private fields, do not use outside kernfs proper */
|
||||
struct ida ino_ida;
|
||||
struct idr ino_idr;
|
||||
struct kernfs_syscall_ops *syscall_ops;
|
||||
|
||||
/* list of kernfs_super_info of this root, protected by kernfs_mutex */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue