Lines Matching refs:subdir
274 struct dentry *root, *subdir; in afs_dynroot_mkdir() local
283 subdir = lookup_one_len(cell->name, root, cell->name_len); in afs_dynroot_mkdir()
284 if (IS_ERR(subdir)) { in afs_dynroot_mkdir()
285 ret = PTR_ERR(subdir); in afs_dynroot_mkdir()
290 subdir->d_fsdata = (void *)1UL; in afs_dynroot_mkdir()
304 struct dentry *root, *subdir; in afs_dynroot_rmdir() local
313 subdir = try_lookup_one_len(cell->name, root, cell->name_len); in afs_dynroot_rmdir()
314 if (IS_ERR_OR_NULL(subdir)) { in afs_dynroot_rmdir()
315 _debug("lookup %ld", PTR_ERR(subdir)); in afs_dynroot_rmdir()
319 _debug("rmdir %pd %u", subdir, d_count(subdir)); in afs_dynroot_rmdir()
321 if (subdir->d_fsdata) { in afs_dynroot_rmdir()
322 _debug("unpin %u", d_count(subdir)); in afs_dynroot_rmdir()
323 subdir->d_fsdata = NULL; in afs_dynroot_rmdir()
324 dput(subdir); in afs_dynroot_rmdir()
326 dput(subdir); in afs_dynroot_rmdir()
367 struct dentry *root = sb->s_root, *subdir; in afs_dynroot_depopulate() local
380 hlist_for_each_entry_safe(subdir, n, &root->d_children, d_sib) { in afs_dynroot_depopulate()
381 if (subdir->d_fsdata) { in afs_dynroot_depopulate()
382 subdir->d_fsdata = NULL; in afs_dynroot_depopulate()
383 dput(subdir); in afs_dynroot_depopulate()