Lines Matching refs:kernfs_root

41 	lockdep_assert_held(&kernfs_root(kn)->kernfs_rwsem);
78 struct kernfs_root *ra = kernfs_root(a), *rb = kernfs_root(b);
148 kn_from = kernfs_root(kn_to)->kn;
386 down_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
390 up_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
413 down_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
417 up_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
467 wake_up_all(&kernfs_root(kn)->deactivate_waitq);
479 __releases(&kernfs_root(kn)->kernfs_rwsem)
480 __acquires(&kernfs_root(kn)->kernfs_rwsem)
482 struct kernfs_root *root = kernfs_root(kn);
555 struct kernfs_root *root;
559 root = kernfs_root(kn);
610 static struct kernfs_node *__kernfs_new_node(struct kernfs_root *root,
700 kn = __kernfs_new_node(kernfs_root(parent), parent,
720 struct kernfs_node *kernfs_find_and_get_node_by_id(struct kernfs_root *root,
773 struct kernfs_root *root = kernfs_root(parent);
818 if (!(kernfs_root(kn)->flags & KERNFS_ROOT_CREATE_DEACTIVATED))
845 lockdep_assert_held(&kernfs_root(parent)->kernfs_rwsem);
877 lockdep_assert_held_read(&kernfs_root(parent)->kernfs_rwsem);
916 struct kernfs_root *root = kernfs_root(parent);
942 struct kernfs_root *root = kernfs_root(parent);
961 struct kernfs_root *kernfs_create_root(struct kernfs_syscall_ops *scops,
964 struct kernfs_root *root;
1018 void kernfs_destroy_root(struct kernfs_root *root)
1030 * kernfs_root_to_node - return the kernfs_node associated with a kernfs_root
1035 struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root)
1115 struct kernfs_root *root;
1158 root = kernfs_root(kn);
1195 struct kernfs_root *root;
1199 root = kernfs_root(parent);
1237 struct kernfs_syscall_ops *scops = kernfs_root(parent)->syscall_ops;
1255 struct kernfs_syscall_ops *scops = kernfs_root(kn)->syscall_ops;
1277 struct kernfs_syscall_ops *scops = kernfs_root(kn)->syscall_ops;
1351 lockdep_assert_held_write(&kernfs_root(root)->kernfs_rwsem);
1372 lockdep_assert_held_write(&kernfs_root(kn)->kernfs_rwsem);
1401 struct kernfs_root *root = kernfs_root(kn);
1426 struct kernfs_root *root = kernfs_root(kn);
1455 lockdep_assert_held_write(&kernfs_root(kn)->kernfs_rwsem);
1497 down_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
1504 up_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
1520 struct kernfs_root *root;
1525 root = kernfs_root(kn);
1617 struct kernfs_root *root = kernfs_root(kn);
1637 wait_queue_head_t *waitq = &kernfs_root(kn)->deactivate_waitq;
1680 struct kernfs_root *root;
1688 root = kernfs_root(parent);
1719 struct kernfs_root *root;
1727 root = kernfs_root(kn);
1847 struct kernfs_root *root;
1853 root = kernfs_root(parent);