Lines Matching refs:name
28 char name[];
66 static bool ovl_cache_entry_find_link(const char *name, int len,
79 cmp = strncmp(name, tmp->name, len);
93 const char *name, int len)
101 cmp = strncmp(name, p->name, len);
125 if (strcmp(p->name, "..") == 0)
136 if ((p->name[0] == '.' && p->len == 1) ||
144 const char *name, int len,
148 size_t size = offsetof(struct ovl_cache_entry, name[len + 1]);
154 memcpy(p->name, name, len);
155 p->name[len] = '\0';
174 const char *name, int len, u64 ino,
181 if (ovl_cache_entry_find_link(name, len, &newp, &parent))
184 p = ovl_cache_entry_new(rdd, name, len, ino, d_type);
198 const char *name, int namelen,
203 p = ovl_cache_entry_find(rdd->root, name, namelen);
207 p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type);
253 static int ovl_fill_merge(struct dir_context *ctx, const char *name,
262 return ovl_cache_entry_add_rb(rdd, name, namelen, ino, d_type);
264 return ovl_fill_lowest(rdd, name, namelen, offset, ino, d_type);
281 dentry = lookup_one_len(p->name, dir, p->len);
429 const char *name, int namelen, bool warn)
436 namelen, name, ino, xinobits);
471 if (p->name[0] == '.') {
476 if (p->len == 2 && p->name[1] == '.') {
482 this = lookup_one_len(p->name, dir, p->len);
514 p->name, p->len,
525 p->name, err);
529 static int ovl_fill_plain(struct dir_context *ctx, const char *name,
538 p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type);
569 if (strcmp(p->name, ".") != 0 &&
570 strcmp(p->name, "..") != 0) {
582 if (WARN_ON(ovl_cache_entry_find_link(p->name, p->len,
649 static int ovl_fill_real(struct dir_context *ctx, const char *name,
657 if (rdt->parent_ino && strcmp(name, "..") == 0) {
662 p = ovl_cache_entry_find(&rdt->cache->root, name, namelen);
667 name, namelen, rdt->xinowarn);
670 return orig_ctx->actor(orig_ctx, name, namelen, offset, ino, d_type);
779 if (!dir_emit(ctx, p->name, p->len, p->ino, p->type))
986 if (p->name[0] == '.') {
989 if (p->len == 2 && p->name[1] == '.')
1014 dentry = lookup_one_len(p->name, upper, p->len);
1017 upper->d_name.name, p->len, p->name,
1028 static int ovl_check_d_type(struct dir_context *ctx, const char *name,
1036 if (!strncmp(name, ".", namelen) || !strncmp(name, "..", namelen))
1087 * When called from ovl_indexdir_cleanup(), path->dentry->d_name.name
1091 !strcmp(path->dentry->d_name.name, OVL_INCOMPATDIR_NAME))
1102 if (p->name[0] == '.') {
1105 if (p->len == 2 && p->name[1] == '.')
1109 p->name);
1113 dentry = lookup_one_len(p->name, path->dentry, p->len);
1175 if (p->name[0] == '.') {
1178 if (p->len == 2 && p->name[1] == '.')
1181 index = lookup_one_len(p->name, indexdir, p->len);
1188 if (index->d_name.name[0] == '#') {