Home
last modified time | relevance | path

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

1234

/fs/hpfs/
Ddnode.c13 struct hpfs_dirent *de; in get_pos() local
16 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in get_pos()
17 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
120 struct hpfs_dirent *de, *de_end, *dee = NULL, *deee = NULL; in dnode_pre_last_de() local
122 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_pre_last_de()
123 deee = dee; dee = de; in dnode_pre_last_de()
130 struct hpfs_dirent *de, *de_end, *dee = NULL; in dnode_last_de() local
132 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_last_de()
133 dee = de; in dnode_last_de()
140 struct hpfs_dirent *de; in set_last_pointer() local
[all …]
Ddir.c69 struct hpfs_dirent *de; in hpfs_readdir() local
155 if (!(de = map_pos_dirent(inode, &next_pos, &qbh))) { in hpfs_readdir()
160 if (de->first || de->last) { in hpfs_readdir()
162 if (de->first && !de->last && (de->namelen != 2 in hpfs_readdir()
163 || de ->name[0] != 1 || de->name[1] != 1)) in hpfs_readdir()
165 if (de->last && (de->namelen != 1 || de ->name[0] != 255)) in hpfs_readdir()
172 tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); in hpfs_readdir()
173 if (!dir_emit(ctx, tempname, de->namelen, le32_to_cpu(de->fnode), DT_UNKNOWN)) { in hpfs_readdir()
174 if (tempname != de->name) kfree(tempname); in hpfs_readdir()
179 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 = container_of(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
85 int result = proc_match(de->namelen, de->name, this); in pde_subdir_insert()
97 rb_link_node(&de->subdir_node, parent, new); in pde_subdir_insert()
[all …]
Dinode.c33 struct proc_dir_entry *de; in proc_evict_inode() local
43 de = PDE(inode); in proc_evict_inode()
44 if (de) in proc_evict_inode()
45 pde_put(de); in proc_evict_inode()
162 void proc_entry_rundown(struct proc_dir_entry *de) in proc_entry_rundown() argument
166 de->pde_unload_completion = &c; in proc_entry_rundown()
167 if (atomic_add_return(BIAS, &de->in_use) != BIAS) in proc_entry_rundown()
170 spin_lock(&de->pde_unload_lock); in proc_entry_rundown()
171 while (!list_empty(&de->pde_openers)) { in proc_entry_rundown()
173 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.c34 const unsigned char *name, struct ufs_dir_entry *de) in ufs_match() argument
36 if (len != ufs_get_de_namlen(sb, de)) in ufs_match()
38 if (!de->d_ino) in ufs_match()
40 return !memcmp(name, de->d_name, len); in ufs_match()
71 struct ufs_dir_entry *de; in ufs_inode_by_name() local
74 de = ufs_find_entry(dir, qstr, &page); in ufs_inode_by_name()
75 if (de) { in ufs_inode_by_name()
76 res = fs32_to_cpu(dir->i_sb, de->d_ino); in ufs_inode_by_name()
84 void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de, in ufs_set_link() argument
89 (char *) de - (char *) page_address(page); in ufs_set_link()
[all …]
/fs/ext2/
Ddir.c222 struct ext2_dir_entry_2 * de) in ext2_match() argument
224 if (len != de->name_len) in ext2_match()
226 if (!de->inode) in ext2_match()
228 return !memcmp(name, de->name, len); in ext2_match()
243 ext2_dirent *de = (ext2_dirent*)(base + offset); in ext2_validate_entry() local
245 while ((char*)p < (char*)de) { in ext2_validate_entry()
275 static inline void ext2_set_de_type(ext2_dirent *de, struct inode *inode) in ext2_set_de_type() argument
279 de->file_type = ext2_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in ext2_set_de_type()
281 de->file_type = 0; in ext2_set_de_type()
305 ext2_dirent *de; in ext2_readdir() local
[all …]
/fs/sysv/
Ddir.c81 struct sysv_dir_entry *de; in sysv_readdir() local
87 de = (struct sysv_dir_entry *)(kaddr+offset); in sysv_readdir()
89 for ( ;(char*)de <= limit; de++, ctx->pos += sizeof(*de)) { in sysv_readdir()
90 char *name = de->name; in sysv_readdir()
92 if (!de->inode) in sysv_readdir()
96 fs16_to_cpu(SYSV_SB(sb), de->inode), in sysv_readdir()
134 struct sysv_dir_entry *de; in sysv_find_entry() local
148 de = (struct sysv_dir_entry *) kaddr; in sysv_find_entry()
150 for ( ; (char *) de <= kaddr ; de++) { in sysv_find_entry()
151 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.c16 int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode) in isofs_name_translate() argument
18 char * old = de->name; in isofs_name_translate()
19 int len = de->name_len[0]; in isofs_name_translate()
49 int get_acorn_filename(struct iso_directory_record *de, in get_acorn_filename() argument
54 int retnamlen = isofs_name_translate(de, retname, inode); in get_acorn_filename()
58 std = sizeof(struct iso_directory_record) + de->name_len[0]; in get_acorn_filename()
61 if (de->length[0] - std != 32) in get_acorn_filename()
63 chr = ((unsigned char *) de) + std; in get_acorn_filename()
68 if (((de->flags[0] & 2) == 0) && (chr[13] == 0xff) in get_acorn_filename()
94 struct iso_directory_record *de; in do_isofs_readdir() local
[all …]
Dnamei.c53 struct iso_directory_record *de; in isofs_find_entry() local
63 de = (struct iso_directory_record *) (bh->b_data + offset); in isofs_find_entry()
65 de_len = *(unsigned char *) de; in isofs_find_entry()
83 memcpy(tmpde, de, slop); in isofs_find_entry()
94 de = tmpde; in isofs_find_entry()
97 dlen = de->name_len[0]; in isofs_find_entry()
98 dpnt = de->name; in isofs_find_entry()
108 ((i = get_rock_ridge_filename(de, tmpname, dir)))) { in isofs_find_entry()
113 dlen = get_joliet_filename(de, tmpname, dir); in isofs_find_entry()
117 dlen = get_acorn_filename(de, tmpname, dir); in isofs_find_entry()
[all …]
/fs/cifs/
Dreaddir.c406 static void cifs_fill_dirent_unix(struct cifs_dirent *de, in cifs_fill_dirent_unix() argument
409 de->name = &info->FileName[0]; in cifs_fill_dirent_unix()
411 de->namelen = cifs_unicode_bytelen(de->name); in cifs_fill_dirent_unix()
413 de->namelen = strnlen(de->name, PATH_MAX); in cifs_fill_dirent_unix()
414 de->resume_key = info->ResumeKey; in cifs_fill_dirent_unix()
415 de->ino = le64_to_cpu(info->basic.UniqueId); in cifs_fill_dirent_unix()
418 static void cifs_fill_dirent_dir(struct cifs_dirent *de, in cifs_fill_dirent_dir() argument
421 de->name = &info->FileName[0]; in cifs_fill_dirent_dir()
422 de->namelen = le32_to_cpu(info->FileNameLength); in cifs_fill_dirent_dir()
423 de->resume_key = info->FileIndex; in cifs_fill_dirent_dir()
[all …]
/fs/qnx6/
Ddir.c45 struct qnx6_long_dir_entry *de, in qnx6_longname() argument
49 u32 s = fs32_to_cpu(sbi, de->de_long_inode); /* in block units */ in qnx6_longname()
62 struct qnx6_long_dir_entry *de, in qnx6_dir_longfilename() argument
72 if (de->de_size != 0xff) { in qnx6_dir_longfilename()
75 pr_err("invalid direntry size (%i).\n", de->de_size); in qnx6_dir_longfilename()
78 lf = qnx6_longname(s, de, &page); in qnx6_dir_longfilename()
95 if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) != in qnx6_dir_longfilename()
129 struct qnx6_dir_entry *de; in qnx6_readdir() local
137 de = ((struct qnx6_dir_entry *)page_address(page)) + start; in qnx6_readdir()
138 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.c259 static int dx_make_map(struct inode *dir, struct ext4_dir_entry_2 *de,
290 struct ext4_dir_entry *de) in get_dirent_tail() argument
297 d = de; in get_dirent_tail()
298 top = (struct ext4_dir_entry *)(((void *)de) + in get_dirent_tail()
310 t = EXT4_DIRENT_TAIL(de, EXT4_BLOCK_SIZE(inode->i_sb)); in get_dirent_tail()
598 struct ext4_dir_entry_2 *de, in dx_show_leaf() argument
602 char *base = (char *) de; in dx_show_leaf()
606 while ((char *) de < base + size) in dx_show_leaf()
608 if (de->inode) in dx_show_leaf()
619 name = de->name; in dx_show_leaf()
[all …]
Ddir.c62 struct ext4_dir_entry_2 *de, in __ext4_check_dir_entry() argument
67 const int rlen = ext4_rec_len_from_disk(de->rec_len, in __ext4_check_dir_entry()
74 else if (unlikely(rlen < EXT4_DIR_REC_LEN(de->name_len))) in __ext4_check_dir_entry()
76 else if (unlikely(((char *) de - buf) + rlen > size)) in __ext4_check_dir_entry()
78 else if (unlikely(le32_to_cpu(de->inode) > in __ext4_check_dir_entry()
89 offset, le32_to_cpu(de->inode), in __ext4_check_dir_entry()
90 rlen, de->name_len); in __ext4_check_dir_entry()
96 offset, le32_to_cpu(de->inode), in __ext4_check_dir_entry()
97 rlen, de->name_len); in __ext4_check_dir_entry()
106 struct ext4_dir_entry_2 *de; in ext4_readdir() local
[all …]
/fs/minix/
Ddir.c75 static inline void *minix_next_entry(void *de, struct minix_sb_info *sbi) in minix_next_entry() argument
77 return (void*)((char*)de + sbi->s_dirsize); in minix_next_entry()
115 minix_dirent *de = (minix_dirent *)p; in minix_readdir() local
116 name = de->name; in minix_readdir()
117 inumber = de->inode; in minix_readdir()
181 minix_dirent *de = (minix_dirent *)p; in minix_find_entry() local
182 namx = de->name; in minix_find_entry()
183 inumber = de->inode; in minix_find_entry()
210 minix_dirent *de; in minix_add_link() local
234 de = (minix_dirent *)p; in minix_add_link()
[all …]
/fs/f2fs/
Ddir.c63 void set_de_type(struct f2fs_dir_entry *de, umode_t mode) in set_de_type() argument
65 de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT]; in set_de_type()
68 unsigned char get_de_type(struct f2fs_dir_entry *de) in get_de_type() argument
70 if (de->file_type < F2FS_FT_MAX) in get_de_type()
71 return f2fs_filetype_table[de->file_type]; in get_de_type()
94 struct f2fs_dir_entry *de; in find_in_block() local
100 de = find_target_dentry(fname, namehash, max_slots, &d); in find_in_block()
101 if (de) in find_in_block()
104 return de; in find_in_block()
111 struct f2fs_dir_entry *de; in find_target_dentry() local
[all …]
/fs/coda/
Ddir.c134 static int coda_create(struct inode *dir, struct dentry *de, umode_t mode, bool excl) in coda_create() argument
137 const char *name=de->d_name.name; in coda_create()
138 int length=de->d_name.len; in coda_create()
159 d_instantiate(de, inode); in coda_create()
162 d_drop(de); in coda_create()
166 static int coda_mkdir(struct inode *dir, struct dentry *de, umode_t mode) in coda_mkdir() argument
170 const char *name = de->d_name.name; in coda_mkdir()
171 int len = de->d_name.len; in coda_mkdir()
193 d_instantiate(de, inode); in coda_mkdir()
196 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.c22 struct qnx4_inode_entry *de; in qnx4_readdir() local
41 de = (struct qnx4_inode_entry *) (bh->b_data + offset); in qnx4_readdir()
42 if (!de->di_fname[0]) in qnx4_readdir()
44 if (!(de->di_status & (QNX4_FILE_USED|QNX4_FILE_LINK))) in qnx4_readdir()
46 if (!(de->di_status & QNX4_FILE_LINK)) in qnx4_readdir()
50 size = strnlen(de->di_fname, size); in qnx4_readdir()
51 QNX4DEBUG((KERN_INFO "qnx4_readdir:%.*s\n", size, de->di_fname)); in qnx4_readdir()
52 if (!(de->di_status & QNX4_FILE_LINK)) in qnx4_readdir()
55 le = (struct qnx4_link_info*)de; in qnx4_readdir()
60 if (!dir_emit(ctx, de->di_fname, size, ino, DT_UNKNOWN)) { in qnx4_readdir()
/fs/bfs/
Ddir.c33 struct bfs_dirent *de; in bfs_readdir() local
53 de = (struct bfs_dirent *)(bh->b_data + offset); in bfs_readdir()
54 if (de->ino) { in bfs_readdir()
55 int size = strnlen(de->name, BFS_NAMELEN); in bfs_readdir()
56 if (!dir_emit(ctx, de->name, size, in bfs_readdir()
57 le16_to_cpu(de->ino), in bfs_readdir()
131 struct bfs_dirent *de; in bfs_lookup() local
138 bh = bfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, &de); in bfs_lookup()
140 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); in bfs_lookup()
181 struct bfs_dirent *de; in bfs_unlink() local
[all …]

1234