summaryrefslogtreecommitdiffstats
path: root/include/linux/kernfs.h
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-07-12 11:49:46 -0700
committerJens Axboe <axboe@kernel.dk>2017-07-29 09:00:03 -0600
commit7d35079f8277b653d6a3075eea9edd4dbf7c2b29 (patch)
treeba7fa95ee75d62694c4fa83e936709e9b4279954 /include/linux/kernfs.h
parent0a07b238e5f488b459b6113a62e06b6aab017f71 (diff)
downloadlinux-stable-7d35079f8277b653d6a3075eea9edd4dbf7c2b29.tar.gz
linux-stable-7d35079f8277b653d6a3075eea9edd4dbf7c2b29.tar.bz2
linux-stable-7d35079f8277b653d6a3075eea9edd4dbf7c2b29.zip
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>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r--include/linux/kernfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h
index a9b11b8d06f2..5f5d602eb433 100644
--- a/include/linux/kernfs.h
+++ b/include/linux/kernfs.h
@@ -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 */