Home
last modified time | relevance | path

Searched refs:de (Results 1 – 25 of 75) sorted by relevance

123

/fs/hpfs/
Ddnode.c14 struct hpfs_dirent *de; in get_pos() local
17 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in get_pos()
18 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
121 struct hpfs_dirent *de, *de_end, *dee = NULL, *deee = NULL; in dnode_pre_last_de() local
123 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_pre_last_de()
124 deee = dee; dee = de; in dnode_pre_last_de()
131 struct hpfs_dirent *de, *de_end, *dee = NULL; in dnode_last_de() local
133 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_last_de()
134 dee = de; in dnode_last_de()
141 struct hpfs_dirent *de; in set_last_pointer() local
[all …]
Ddir.c70 struct hpfs_dirent *de; in hpfs_readdir() local
156 if (!(de = map_pos_dirent(inode, &next_pos, &qbh))) { in hpfs_readdir()
161 if (de->first || de->last) { in hpfs_readdir()
163 if (de->first && !de->last && (de->namelen != 2 in hpfs_readdir()
164 || de ->name[0] != 1 || de->name[1] != 1)) in hpfs_readdir()
166 if (de->last && (de->namelen != 1 || de ->name[0] != 255)) in hpfs_readdir()
173 tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); in hpfs_readdir()
174 if (!dir_emit(ctx, tempname, de->namelen, le32_to_cpu(de->fnode), DT_UNKNOWN)) { in hpfs_readdir()
175 if (tempname != de->name) kfree(tempname); in hpfs_readdir()
180 if (tempname != de->name) kfree(tempname); in hpfs_readdir()
[all …]
/fs/proc/
Dgeneric.c31 static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de) in proc_match() argument
33 if (len < de->namelen) in proc_match()
35 if (len > de->namelen) in proc_match()
38 return memcmp(name, de->name, len); in proc_match()
60 struct proc_dir_entry *de = rb_entry(node, in pde_subdir_find() local
63 int result = proc_match(len, name, de); in pde_subdir_find()
70 return de; in pde_subdir_find()
76 struct proc_dir_entry *de) in pde_subdir_insert() argument
87 int result = proc_match(de->namelen, de->name, this); in pde_subdir_insert()
100 rb_link_node(&de->subdir_node, parent, new); in pde_subdir_insert()
[all …]
Dinode.c34 struct proc_dir_entry *de; in proc_evict_inode() local
44 de = PDE(inode); in proc_evict_inode()
45 if (de) in proc_evict_inode()
46 pde_put(de); in proc_evict_inode()
175 void proc_entry_rundown(struct proc_dir_entry *de) in proc_entry_rundown() argument
179 de->pde_unload_completion = &c; in proc_entry_rundown()
180 if (atomic_add_return(BIAS, &de->in_use) != BIAS) in proc_entry_rundown()
185 spin_lock(&de->pde_unload_lock); in proc_entry_rundown()
186 while (!list_empty(&de->pde_openers)) { in proc_entry_rundown()
188 pdeo = list_first_entry(&de->pde_openers, struct pde_opener, lh); in proc_entry_rundown()
[all …]
/fs/nilfs2/
Ddir.c223 nilfs_match(int len, const unsigned char *name, struct nilfs_dir_entry *de) in nilfs_match() argument
225 if (len != de->name_len) in nilfs_match()
227 if (!de->inode) in nilfs_match()
229 return !memcmp(name, de->name, len); in nilfs_match()
265 static void nilfs_set_de_type(struct nilfs_dir_entry *de, struct inode *inode) in nilfs_set_de_type() argument
269 de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in nilfs_set_de_type()
286 struct nilfs_dir_entry *de; in nilfs_readdir() local
295 de = (struct nilfs_dir_entry *)(kaddr + offset); in nilfs_readdir()
298 for ( ; (char *)de <= limit; de = nilfs_next_entry(de)) { in nilfs_readdir()
299 if (de->rec_len == 0) { in nilfs_readdir()
[all …]
/fs/exofs/
Ddir.c177 struct exofs_dir_entry *de) in exofs_match() argument
179 if (len != de->name_len) in exofs_match()
181 if (!de->inode_no) in exofs_match()
183 return !memcmp(name, de->name, len); in exofs_match()
195 struct exofs_dir_entry *de = (struct exofs_dir_entry *)(base + offset); in exofs_validate_entry() local
198 while ((char *)p < (char *)de) { in exofs_validate_entry()
229 void exofs_set_de_type(struct exofs_dir_entry *de, struct inode *inode) in exofs_set_de_type() argument
232 de->file_type = exofs_type_by_mode[(mode & S_IFMT) >> S_SHIFT]; in exofs_set_de_type()
251 struct exofs_dir_entry *de; in exofs_readdir() local
270 de = (struct exofs_dir_entry *)(kaddr + offset); in exofs_readdir()
[all …]
/fs/ufs/
Ddir.c35 const unsigned char *name, struct ufs_dir_entry *de) in ufs_match() argument
37 if (len != ufs_get_de_namlen(sb, de)) in ufs_match()
39 if (!de->d_ino) in ufs_match()
41 return !memcmp(name, de->d_name, len); in ufs_match()
72 struct ufs_dir_entry *de; in ufs_inode_by_name() local
75 de = ufs_find_entry(dir, qstr, &page); in ufs_inode_by_name()
76 if (de) { in ufs_inode_by_name()
77 res = fs32_to_cpu(dir->i_sb, de->d_ino); in ufs_inode_by_name()
85 void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de, in ufs_set_link() argument
90 (char *) de - (char *) page_address(page); in ufs_set_link()
[all …]
/fs/ext2/
Ddir.c223 struct ext2_dir_entry_2 * de) in ext2_match() argument
225 if (len != de->name_len) in ext2_match()
227 if (!de->inode) in ext2_match()
229 return !memcmp(name, de->name, len); in ext2_match()
244 ext2_dirent *de = (ext2_dirent*)(base + offset); in ext2_validate_entry() local
246 while ((char*)p < (char*)de) { in ext2_validate_entry()
276 static inline void ext2_set_de_type(ext2_dirent *de, struct inode *inode) in ext2_set_de_type() argument
280 de->file_type = ext2_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in ext2_set_de_type()
282 de->file_type = 0; in ext2_set_de_type()
306 ext2_dirent *de; in ext2_readdir() local
[all …]
/fs/sysv/
Ddir.c82 struct sysv_dir_entry *de; in sysv_readdir() local
88 de = (struct sysv_dir_entry *)(kaddr+offset); in sysv_readdir()
90 for ( ;(char*)de <= limit; de++, ctx->pos += sizeof(*de)) { in sysv_readdir()
91 char *name = de->name; in sysv_readdir()
93 if (!de->inode) in sysv_readdir()
97 fs16_to_cpu(SYSV_SB(sb), de->inode), in sysv_readdir()
135 struct sysv_dir_entry *de; in sysv_find_entry() local
149 de = (struct sysv_dir_entry *) kaddr; in sysv_find_entry()
151 for ( ; (char *) de <= kaddr ; de++) { in sysv_find_entry()
152 if (!de->inode) in sysv_find_entry()
[all …]
/fs/fat/
Ddir.c41 struct msdos_dir_entry *de) in fat_make_i_pos() argument
44 | (de - (struct msdos_dir_entry *)bh->b_data); in fat_make_i_pos()
81 struct buffer_head **bh, struct msdos_dir_entry **de) in fat__get_entry() argument
111 *de = (struct msdos_dir_entry *)((*bh)->b_data + offset); in fat__get_entry()
118 struct msdos_dir_entry **de) in fat_get_entry() argument
121 if (*bh && *de && in fat_get_entry()
122 (*de - (struct msdos_dir_entry *)(*bh)->b_data) < in fat_get_entry()
125 (*de)++; in fat_get_entry()
128 return fat__get_entry(dir, pos, bh, de); in fat_get_entry()
280 struct buffer_head **bh, struct msdos_dir_entry **de, in fat_parse_long() argument
[all …]
/fs/reiserfs/
Dnamei.c29 static int bin_search_in_dir_item(struct reiserfs_dir_entry *de, loff_t off) in bin_search_in_dir_item() argument
31 struct item_head *ih = de->de_ih; in bin_search_in_dir_item()
32 struct reiserfs_de_head *deh = de->de_deh; in bin_search_in_dir_item()
49 de->de_entry_num = j; in bin_search_in_dir_item()
53 de->de_entry_num = lbound; in bin_search_in_dir_item()
60 static inline void set_de_item_location(struct reiserfs_dir_entry *de, in set_de_item_location() argument
63 de->de_bh = get_last_bh(path); in set_de_item_location()
64 de->de_ih = tp_item_head(path); in set_de_item_location()
65 de->de_deh = B_I_DEH(de->de_bh, de->de_ih); in set_de_item_location()
66 de->de_item_num = PATH_LAST_POSITION(path); in set_de_item_location()
[all …]
/fs/isofs/
Ddir.c17 int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode) in isofs_name_translate() argument
19 char * old = de->name; in isofs_name_translate()
20 int len = de->name_len[0]; in isofs_name_translate()
50 int get_acorn_filename(struct iso_directory_record *de, in get_acorn_filename() argument
55 int retnamlen = isofs_name_translate(de, retname, inode); in get_acorn_filename()
59 std = sizeof(struct iso_directory_record) + de->name_len[0]; in get_acorn_filename()
62 if (de->length[0] - std != 32) in get_acorn_filename()
64 chr = ((unsigned char *) de) + std; in get_acorn_filename()
69 if (((de->flags[0] & 2) == 0) && (chr[13] == 0xff) in get_acorn_filename()
95 struct iso_directory_record *de; in do_isofs_readdir() local
[all …]
Dnamei.c54 struct iso_directory_record *de; in isofs_find_entry() local
64 de = (struct iso_directory_record *) (bh->b_data + offset); in isofs_find_entry()
66 de_len = *(unsigned char *) de; in isofs_find_entry()
84 memcpy(tmpde, de, slop); in isofs_find_entry()
95 de = tmpde; in isofs_find_entry()
98 dlen = de->name_len[0]; in isofs_find_entry()
99 dpnt = de->name; in isofs_find_entry()
109 ((i = get_rock_ridge_filename(de, tmpname, dir)))) { in isofs_find_entry()
114 dlen = get_joliet_filename(de, tmpname, dir); in isofs_find_entry()
118 dlen = get_acorn_filename(de, tmpname, dir); in isofs_find_entry()
[all …]
/fs/cifs/
Dreaddir.c413 static void cifs_fill_dirent_unix(struct cifs_dirent *de, in cifs_fill_dirent_unix() argument
416 de->name = &info->FileName[0]; in cifs_fill_dirent_unix()
418 de->namelen = cifs_unicode_bytelen(de->name); in cifs_fill_dirent_unix()
420 de->namelen = strnlen(de->name, PATH_MAX); in cifs_fill_dirent_unix()
421 de->resume_key = info->ResumeKey; in cifs_fill_dirent_unix()
422 de->ino = le64_to_cpu(info->basic.UniqueId); in cifs_fill_dirent_unix()
425 static void cifs_fill_dirent_dir(struct cifs_dirent *de, in cifs_fill_dirent_dir() argument
428 de->name = &info->FileName[0]; in cifs_fill_dirent_dir()
429 de->namelen = le32_to_cpu(info->FileNameLength); in cifs_fill_dirent_dir()
430 de->resume_key = info->FileIndex; in cifs_fill_dirent_dir()
[all …]
/fs/qnx6/
Ddir.c46 struct qnx6_long_dir_entry *de, in qnx6_longname() argument
50 u32 s = fs32_to_cpu(sbi, de->de_long_inode); /* in block units */ in qnx6_longname()
63 struct qnx6_long_dir_entry *de, in qnx6_dir_longfilename() argument
73 if (de->de_size != 0xff) { in qnx6_dir_longfilename()
76 pr_err("invalid direntry size (%i).\n", de->de_size); in qnx6_dir_longfilename()
79 lf = qnx6_longname(s, de, &page); in qnx6_dir_longfilename()
96 if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) != in qnx6_dir_longfilename()
130 struct qnx6_dir_entry *de; in qnx6_readdir() local
138 de = ((struct qnx6_dir_entry *)page_address(page)) + start; in qnx6_readdir()
139 for (; i < limit; i++, de++, ctx->pos += QNX6_DIR_ENTRY_SIZE) { in qnx6_readdir()
[all …]
/fs/freevxfs/
Dvxfs_lookup.c102 struct vxfs_direct *de; in vxfs_find_entry() local
113 de = (struct vxfs_direct *)(kaddr + pg_ofs); in vxfs_find_entry()
115 if (!de->d_reclen) { in vxfs_find_entry()
121 pg_ofs += fs16_to_cpu(sbi, de->d_reclen); in vxfs_find_entry()
122 pos += fs16_to_cpu(sbi, de->d_reclen); in vxfs_find_entry()
123 if (!de->d_ino) in vxfs_find_entry()
126 if (namelen != fs16_to_cpu(sbi, de->d_namelen)) in vxfs_find_entry()
128 if (!memcmp(name, de->d_name, namelen)) { in vxfs_find_entry()
130 de_exit = de; in vxfs_find_entry()
158 struct vxfs_direct *de; in vxfs_inode_by_name() local
[all …]
/fs/ext4/
Dnamei.c274 static int dx_make_map(struct inode *dir, struct ext4_dir_entry_2 *de,
305 struct ext4_dir_entry *de) in get_dirent_tail() argument
312 d = de; in get_dirent_tail()
313 top = (struct ext4_dir_entry *)(((void *)de) + in get_dirent_tail()
325 t = EXT4_DIRENT_TAIL(de, EXT4_BLOCK_SIZE(inode->i_sb)); in get_dirent_tail()
613 struct ext4_dir_entry_2 *de, in dx_show_leaf() argument
617 char *base = (char *) de; in dx_show_leaf()
621 while ((char *) de < base + size) in dx_show_leaf()
623 if (de->inode) in dx_show_leaf()
634 name = de->name; in dx_show_leaf()
[all …]
Ddir.c63 struct ext4_dir_entry_2 *de, in __ext4_check_dir_entry() argument
68 const int rlen = ext4_rec_len_from_disk(de->rec_len, in __ext4_check_dir_entry()
75 else if (unlikely(rlen < EXT4_DIR_REC_LEN(de->name_len))) in __ext4_check_dir_entry()
77 else if (unlikely(((char *) de - buf) + rlen > size)) in __ext4_check_dir_entry()
79 else if (unlikely(((char *) de - buf) + rlen > in __ext4_check_dir_entry()
81 ((char *) de - buf) + rlen != size)) { in __ext4_check_dir_entry()
84 else if (unlikely(le32_to_cpu(de->inode) > in __ext4_check_dir_entry()
94 error_msg, offset, le32_to_cpu(de->inode), in __ext4_check_dir_entry()
95 rlen, de->name_len, size); in __ext4_check_dir_entry()
100 error_msg, offset, le32_to_cpu(de->inode), in __ext4_check_dir_entry()
[all …]
/fs/f2fs/
Ddir.c60 static void set_de_type(struct f2fs_dir_entry *de, umode_t mode) in set_de_type() argument
62 de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT]; in set_de_type()
65 unsigned char f2fs_get_de_type(struct f2fs_dir_entry *de) in f2fs_get_de_type() argument
67 if (de->file_type < F2FS_FT_MAX) in f2fs_get_de_type()
68 return f2fs_filetype_table[de->file_type]; in f2fs_get_de_type()
91 struct f2fs_dir_entry *de; in find_in_block() local
97 de = f2fs_find_target_dentry(fname, namehash, max_slots, &d); in find_in_block()
98 if (de) in find_in_block()
101 return de; in find_in_block()
108 struct f2fs_dir_entry *de; in f2fs_find_target_dentry() local
[all …]
/fs/minix/
Ddir.c76 static inline void *minix_next_entry(void *de, struct minix_sb_info *sbi) in minix_next_entry() argument
78 return (void*)((char*)de + sbi->s_dirsize); in minix_next_entry()
116 minix_dirent *de = (minix_dirent *)p; in minix_readdir() local
117 name = de->name; in minix_readdir()
118 inumber = de->inode; in minix_readdir()
182 minix_dirent *de = (minix_dirent *)p; in minix_find_entry() local
183 namx = de->name; in minix_find_entry()
184 inumber = de->inode; in minix_find_entry()
211 minix_dirent *de; in minix_add_link() local
235 de = (minix_dirent *)p; in minix_add_link()
[all …]
/fs/coda/
Ddir.c135 static int coda_create(struct inode *dir, struct dentry *de, umode_t mode, bool excl) in coda_create() argument
138 const char *name=de->d_name.name; in coda_create()
139 int length=de->d_name.len; in coda_create()
160 d_instantiate(de, inode); in coda_create()
163 d_drop(de); in coda_create()
167 static int coda_mkdir(struct inode *dir, struct dentry *de, umode_t mode) in coda_mkdir() argument
171 const char *name = de->d_name.name; in coda_mkdir()
172 int len = de->d_name.len; in coda_mkdir()
194 d_instantiate(de, inode); in coda_mkdir()
197 d_drop(de); in coda_mkdir()
[all …]
/fs/ocfs2/
Ddir.c137 struct ocfs2_dir_entry *de, in ocfs2_skip_dir_trailer() argument
317 struct ocfs2_dir_entry * de, in ocfs2_check_dir_entry() argument
322 const int rlen = le16_to_cpu(de->rec_len); in ocfs2_check_dir_entry()
328 else if (unlikely(rlen < OCFS2_DIR_REC_LEN(de->name_len))) in ocfs2_check_dir_entry()
331 ((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize)) in ocfs2_check_dir_entry()
338 offset, (unsigned long long)le64_to_cpu(de->inode), rlen, in ocfs2_check_dir_entry()
339 de->name_len); in ocfs2_check_dir_entry()
346 struct ocfs2_dir_entry *de) in ocfs2_match() argument
348 if (len != de->name_len) in ocfs2_match()
350 if (!de->inode) in ocfs2_match()
[all …]
/fs/adfs/
Ddir_f.c211 struct adfs_direntry *de) in adfs_dir2obj() argument
213 obj->name_len = adfs_readname(obj->name, de->dirobname, ADFS_F_NAME_LEN); in adfs_dir2obj()
214 obj->file_id = adfs_readval(de->dirinddiscadd, 3); in adfs_dir2obj()
215 obj->loadaddr = adfs_readval(de->dirload, 4); in adfs_dir2obj()
216 obj->execaddr = adfs_readval(de->direxec, 4); in adfs_dir2obj()
217 obj->size = adfs_readval(de->dirlen, 4); in adfs_dir2obj()
218 obj->attr = de->newdiratts; in adfs_dir2obj()
242 adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj) in adfs_obj2dir() argument
244 adfs_writeval(de->dirinddiscadd, 3, obj->file_id); in adfs_obj2dir()
245 adfs_writeval(de->dirload, 4, obj->loadaddr); in adfs_obj2dir()
[all …]
/fs/qnx4/
Ddir.c23 struct qnx4_inode_entry *de; in qnx4_readdir() local
42 de = (struct qnx4_inode_entry *) (bh->b_data + offset); in qnx4_readdir()
43 if (!de->di_fname[0]) in qnx4_readdir()
45 if (!(de->di_status & (QNX4_FILE_USED|QNX4_FILE_LINK))) in qnx4_readdir()
47 if (!(de->di_status & QNX4_FILE_LINK)) in qnx4_readdir()
51 size = strnlen(de->di_fname, size); in qnx4_readdir()
52 QNX4DEBUG((KERN_INFO "qnx4_readdir:%.*s\n", size, de->di_fname)); in qnx4_readdir()
53 if (!(de->di_status & QNX4_FILE_LINK)) in qnx4_readdir()
56 le = (struct qnx4_link_info*)de; in qnx4_readdir()
61 if (!dir_emit(ctx, de->di_fname, size, ino, DT_UNKNOWN)) { in qnx4_readdir()
/fs/bfs/
Ddir.c34 struct bfs_dirent *de; in bfs_readdir() local
54 de = (struct bfs_dirent *)(bh->b_data + offset); in bfs_readdir()
55 if (de->ino) { in bfs_readdir()
56 int size = strnlen(de->name, BFS_NAMELEN); in bfs_readdir()
57 if (!dir_emit(ctx, de->name, size, in bfs_readdir()
58 le16_to_cpu(de->ino), in bfs_readdir()
132 struct bfs_dirent *de; in bfs_lookup() local
139 bh = bfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, &de); in bfs_lookup()
141 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); in bfs_lookup()
182 struct bfs_dirent *de; in bfs_unlink() local
[all …]

123