Lines Matching refs:subdir
282 struct dentry *root, *subdir; in afs_dynroot_mkdir() local
291 subdir = lookup_one_len(cell->name, root, cell->name_len); in afs_dynroot_mkdir()
292 if (IS_ERR(subdir)) { in afs_dynroot_mkdir()
293 ret = PTR_ERR(subdir); in afs_dynroot_mkdir()
298 subdir->d_fsdata = (void *)1UL; in afs_dynroot_mkdir()
312 struct dentry *root, *subdir; in afs_dynroot_rmdir() local
321 subdir = try_lookup_one_len(cell->name, root, cell->name_len); in afs_dynroot_rmdir()
322 if (IS_ERR_OR_NULL(subdir)) { in afs_dynroot_rmdir()
323 _debug("lookup %ld", PTR_ERR(subdir)); in afs_dynroot_rmdir()
327 _debug("rmdir %pd %u", subdir, d_count(subdir)); in afs_dynroot_rmdir()
329 if (subdir->d_fsdata) { in afs_dynroot_rmdir()
330 _debug("unpin %u", d_count(subdir)); in afs_dynroot_rmdir()
331 subdir->d_fsdata = NULL; in afs_dynroot_rmdir()
332 dput(subdir); in afs_dynroot_rmdir()
334 dput(subdir); in afs_dynroot_rmdir()
375 struct dentry *root = sb->s_root, *subdir, *tmp; in afs_dynroot_depopulate() local
387 list_for_each_entry_safe(subdir, tmp, &root->d_subdirs, d_child) { in afs_dynroot_depopulate()
388 if (subdir->d_fsdata) { in afs_dynroot_depopulate()
389 subdir->d_fsdata = NULL; in afs_dynroot_depopulate()
390 dput(subdir); in afs_dynroot_depopulate()