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 bool 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(mnt_idmap(path->mnt), p->name, dir, p->len);
430 const char *name, int namelen, bool warn)
437 namelen, name, ino, xinobits);
473 if (p->name[0] == '.') {
478 if (p->len == 2 && p->name[1] == '.') {
484 this = lookup_one(mnt_idmap(path->mnt), p->name, dir, p->len);
518 p->name, p->len,
529 p->name, err);
533 static bool ovl_fill_plain(struct dir_context *ctx, const char *name,
542 p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type);
573 if (strcmp(p->name, ".") != 0 &&
574 strcmp(p->name, "..") != 0) {
586 if (WARN_ON(ovl_cache_entry_find_link(p->name, p->len,
654 static bool ovl_fill_real(struct dir_context *ctx, const char *name,
662 if (rdt->parent_ino && strcmp(name, "..") == 0) {
667 p = ovl_cache_entry_find(&rdt->cache->root, name, namelen);
672 name, namelen, rdt->xinowarn);
675 return orig_ctx->actor(orig_ctx, name, namelen, offset, ino, d_type);
789 if (!dir_emit(ctx, p->name, p->len, p->ino, p->type))
993 if (p->name[0] == '.') {
996 if (p->len == 2 && p->name[1] == '.')
1022 dentry = ovl_lookup_upper(ofs, p->name, upper, p->len);
1025 upper->d_name.name, p->len, p->name,
1036 static bool ovl_check_d_type(struct dir_context *ctx, const char *name,
1044 if (!strncmp(name, ".", namelen) || !strncmp(name, "..", namelen))
1092 * When called from ovl_indexdir_cleanup(), path->dentry->d_name.name
1096 !strcmp(path->dentry->d_name.name, OVL_INCOMPATDIR_NAME))
1107 if (p->name[0] == '.') {
1110 if (p->len == 2 && p->name[1] == '.')
1114 p->name);
1118 dentry = ovl_lookup_upper(ofs, p->name, path->dentry, p->len);
1176 if (p->name[0] == '.') {
1179 if (p->len == 2 && p->name[1] == '.')
1182 index = ovl_lookup_upper(ofs, p->name, indexdir, p->len);
1189 if (index->d_name.name[0] == '#') {