Lines Matching defs:root
42 * But parent configfs_subsystem is NULL when config_item is root.
43 * Use this mutex when config_item is root.
1140 struct dentry *root;
1144 * the root of the configfs filesystem.
1146 root = configfs_pin_fs();
1147 if (IS_ERR(root))
1148 return PTR_ERR(root);
1151 * Next, lock the root directory. We're going to check that the
1155 inode_lock(d_inode(root));
1157 subsys_sd = configfs_find_subsys_dentry(root->d_fsdata, s_item);
1167 inode_unlock(d_inode(root));
1209 * determine if we should lock root and check subsys or not. When we are
1213 * on some inode. Otherwise we have to lock our root to ensure that target's
1220 struct config_group *root, *parent;
1224 /* Disallow this function for configfs root */
1230 * This may happen when someone is trying to depend root
1235 root = parent;
1238 /* Find a cofnigfs root as we may need it for locking */
1239 for (root = parent; !configfs_is_root(&root->cg_item);
1240 root = root->cg_item.ci_group)
1250 inode_lock(d_inode(root->cg_item.ci_dentry));
1257 root->cg_item.ci_dentry->d_fsdata,
1274 inode_unlock(d_inode(root->cg_item.ci_dentry));
1879 struct dentry *root;
1887 root = configfs_pin_fs();
1888 if (IS_ERR(root)) {
1890 return PTR_ERR(root);
1896 sd = root->d_fsdata;
1901 inode_lock_nested(d_inode(root), I_MUTEX_PARENT);
1904 dentry = d_alloc_name(root, group->cg_item.ci_name);
1921 inode_unlock(d_inode(root));
1938 struct dentry *root = dentry->d_sb->s_root;
1942 if (dentry->d_parent != root) {
1951 inode_lock_nested(d_inode(root),
1967 fsnotify_rmdir(d_inode(root), dentry);
1969 inode_unlock(d_inode(root));