Searched refs:kernfs_type (Results 1 – 10 of 10) sorted by relevance
287 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function330 WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); in kernfs_enable_ns()415 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function
101 WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); in sysfs_remove_dir()
187 if (kernfs_type(kn) != KERNFS_LINK) in sysfs_rename_link_ns()
604 if (kernfs_type(kn) != KERNFS_LINK) in sysfs_link_change_owner()
182 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_refresh_inode()212 switch (kernfs_type(kn)) { in kernfs_init_inode()
373 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_link_sibling()395 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_unlink_sibling()525 if (kernfs_type(kn) == KERNFS_LINK) in kernfs_put()775 if (kernfs_type(parent) != KERNFS_DIR) in kernfs_add_one()1202 if (kernfs_type(pos) != KERNFS_DIR) in kernfs_leftmost_descendant()
919 if (WARN_ON(kernfs_type(kn) != KERNFS_FILE)) in kernfs_notify()
715 kernfs_type(kn) != KERNFS_DIR) in cgroupstats_build()847 if (kernfs_type(kn) != KERNFS_DIR) in cgroup1_rename()
1557 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_unlock()1589 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_lock_live()6334 !kn || kernfs_type(kn) != KERNFS_DIR) in css_tryget_online_from_dir()6387 if (kernfs_type(kn) == KERNFS_DIR) { in cgroup_get_from_path()
1690 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restrict()1738 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restore()2022 if (kernfs_type(kn) == KERNFS_DIR) { in kernfs_to_rdtgroup()