Lines Matching refs:subdir
279 struct dentry *root, *subdir; in afs_dynroot_mkdir() local
288 subdir = lookup_one_len(cell->name, root, cell->name_len); in afs_dynroot_mkdir()
289 if (IS_ERR(subdir)) { in afs_dynroot_mkdir()
290 ret = PTR_ERR(subdir); in afs_dynroot_mkdir()
295 subdir->d_fsdata = (void *)1UL; in afs_dynroot_mkdir()
309 struct dentry *root, *subdir; in afs_dynroot_rmdir() local
318 subdir = try_lookup_one_len(cell->name, root, cell->name_len); in afs_dynroot_rmdir()
319 if (IS_ERR_OR_NULL(subdir)) { in afs_dynroot_rmdir()
320 _debug("lookup %ld", PTR_ERR(subdir)); in afs_dynroot_rmdir()
324 _debug("rmdir %pd %u", subdir, d_count(subdir)); in afs_dynroot_rmdir()
326 if (subdir->d_fsdata) { in afs_dynroot_rmdir()
327 _debug("unpin %u", d_count(subdir)); in afs_dynroot_rmdir()
328 subdir->d_fsdata = NULL; in afs_dynroot_rmdir()
329 dput(subdir); in afs_dynroot_rmdir()
331 dput(subdir); in afs_dynroot_rmdir()
372 struct dentry *root = sb->s_root, *subdir, *tmp; in afs_dynroot_depopulate() local
384 list_for_each_entry_safe(subdir, tmp, &root->d_subdirs, d_child) { in afs_dynroot_depopulate()
385 if (subdir->d_fsdata) { in afs_dynroot_depopulate()
386 subdir->d_fsdata = NULL; in afs_dynroot_depopulate()
387 dput(subdir); in afs_dynroot_depopulate()