Lines Matching defs:subdir
985 * get_subdir - find or create a subdir with the specified name.
1000 struct ctl_dir *subdir, *new = NULL;
1004 subdir = find_subdir(dir, name, namelen);
1005 if (!IS_ERR(subdir))
1007 if (PTR_ERR(subdir) != -ENOENT)
1013 subdir = ERR_PTR(-ENOMEM);
1017 /* Was the subdir added while we dropped the lock? */
1018 subdir = find_subdir(dir, name, namelen);
1019 if (!IS_ERR(subdir))
1021 if (PTR_ERR(subdir) != -ENOENT)
1026 subdir = ERR_PTR(err);
1029 subdir = new;
1031 subdir->header.nreg++;
1033 if (IS_ERR(subdir)) {
1037 PTR_ERR(subdir));
1043 return subdir;