Home
last modified time | relevance | path

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

123

/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) d->self << 4) | (loff_t)i; in get_pos()
111 struct hpfs_dirent *de, *de_end, *dee = NULL, *deee = NULL; in dnode_pre_last_de() local
113 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_pre_last_de()
114 deee = dee; dee = de; in dnode_pre_last_de()
121 struct hpfs_dirent *de, *de_end, *dee = NULL; in dnode_last_de() local
123 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_last_de()
124 dee = de; in dnode_last_de()
131 struct hpfs_dirent *de; in set_last_pointer() local
[all …]
Ddir.c58 struct hpfs_dirent *de; in hpfs_readdir() local
142 if (!(de = map_pos_dirent(inode, &filp->f_pos, &qbh))) { in hpfs_readdir()
146 if (de->first || de->last) { in hpfs_readdir()
148 if (de->first && !de->last && (de->namelen != 2 in hpfs_readdir()
149 || de ->name[0] != 1 || de->name[1] != 1)) in hpfs_readdir()
151 if (de->last && (de->namelen != 1 || de ->name[0] != 255)) in hpfs_readdir()
157 tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); in hpfs_readdir()
158 if (filldir(dirent, tempname, de->namelen, old_pos, de->fnode, DT_UNKNOWN) < 0) { in hpfs_readdir()
160 if (tempname != (char *)de->name) kfree(tempname); in hpfs_readdir()
164 if (tempname != (char *)de->name) kfree(tempname); in hpfs_readdir()
[all …]
Dinode.c218 struct hpfs_dirent *de; in hpfs_write_inode_nolock() local
222 if (!(de = map_fnode_dirent(i->i_sb, i->i_ino, fnode, &qbh))) { in hpfs_write_inode_nolock()
226 } else de = NULL; in hpfs_write_inode_nolock()
229 if (de) de->file_size = i->i_size; in hpfs_write_inode_nolock()
232 if (de) de->file_size = 0; in hpfs_write_inode_nolock()
235 if (de) { in hpfs_write_inode_nolock()
236 de->write_date = gmt_to_local(i->i_sb, i->i_mtime.tv_sec); in hpfs_write_inode_nolock()
237 de->read_date = gmt_to_local(i->i_sb, i->i_atime.tv_sec); in hpfs_write_inode_nolock()
238 de->creation_date = gmt_to_local(i->i_sb, i->i_ctime.tv_sec); in hpfs_write_inode_nolock()
239 de->read_only = !(i->i_mode & 0222); in hpfs_write_inode_nolock()
[all …]
/fs/ufs/
Ddir.c34 const char * const 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()
76 struct ufs_dir_entry *de; in ufs_inode_by_name() local
79 de = ufs_find_entry(dir, dentry, &page); in ufs_inode_by_name()
80 if (de) { in ufs_inode_by_name()
81 res = fs32_to_cpu(dir->i_sb, de->d_ino); in ufs_inode_by_name()
89 void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de, in ufs_set_link() argument
93 (char *) de - (char *) page_address(page); in ufs_set_link()
[all …]
/fs/ext2/
Ddir.c218 struct ext2_dir_entry_2 * de) in ext2_match() argument
220 if (len != de->name_len) in ext2_match()
222 if (!de->inode) in ext2_match()
224 return !memcmp(name, de->name, len); in ext2_match()
239 ext2_dirent *de = (ext2_dirent*)(base + offset); in ext2_validate_entry() local
241 while ((char*)p < (char*)de) { in ext2_validate_entry()
271 static inline void ext2_set_de_type(ext2_dirent *de, struct inode *inode) in ext2_set_de_type() argument
275 de->file_type = ext2_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in ext2_set_de_type()
277 de->file_type = 0; in ext2_set_de_type()
301 ext2_dirent *de; in ext2_readdir() local
[all …]
/fs/proc/
Dgeneric.c29 static int proc_match(int len, const char *name, struct proc_dir_entry *de) in proc_match() argument
31 if (de->namelen != len) in proc_match()
33 return !memcmp(name, de->name, len); in proc_match()
227 struct proc_dir_entry *de = PDE(inode); in proc_notify_change() local
238 de->uid = inode->i_uid; in proc_notify_change()
239 de->gid = inode->i_gid; in proc_notify_change()
240 de->mode = inode->i_mode; in proc_notify_change()
249 struct proc_dir_entry *de = PROC_I(inode)->pde; in proc_getattr() local
250 if (de && de->nlink) in proc_getattr()
251 inode->i_nlink = de->nlink; in proc_getattr()
[all …]
Dinode.c27 struct proc_dir_entry *de_get(struct proc_dir_entry *de) in de_get() argument
29 atomic_inc(&de->count); in de_get()
30 return de; in de_get()
36 void de_put(struct proc_dir_entry *de) in de_put() argument
38 if (!atomic_read(&de->count)) { in de_put()
39 printk("de_put: entry %s already free!\n", de->name); in de_put()
43 if (atomic_dec_and_test(&de->count)) in de_put()
44 free_proc_entry(de); in de_put()
52 struct proc_dir_entry *de; in proc_delete_inode() local
60 de = PROC_I(inode)->pde; in proc_delete_inode()
[all …]
Dproc_devtree.c17 struct proc_dir_entry *de) in set_node_proc_entry() argument
56 __proc_device_tree_add_prop(struct proc_dir_entry *de, struct property *pp, in __proc_device_tree_add_prop() argument
67 ? S_IRUGO : S_IRUSR, de, in __proc_device_tree_add_prop()
116 static int duplicate_name(struct proc_dir_entry *de, const char *name) in duplicate_name() argument
123 for (ent = de->subdir; ent != NULL; ent = ent->next) { in duplicate_name()
135 static const char *fixup_name(struct device_node *np, struct proc_dir_entry *de, in fixup_name() argument
161 if (duplicate_name(de, fixed_name)) { in fixup_name()
177 struct proc_dir_entry *de) in proc_device_tree_add_node() argument
184 set_node_proc_entry(np, de); in proc_device_tree_add_node()
193 if (duplicate_name(de, p)) in proc_device_tree_add_node()
[all …]
/fs/dlm/
Ddir.c27 static void put_free_de(struct dlm_ls *ls, struct dlm_direntry *de) in put_free_de() argument
30 list_add(&de->list, &ls->ls_recover_list); in put_free_de()
37 struct dlm_direntry *de; in get_free_de() local
40 list_for_each_entry(de, &ls->ls_recover_list, list) { in get_free_de()
41 if (de->length == len) { in get_free_de()
42 list_del(&de->list); in get_free_de()
43 de->master_nodeid = 0; in get_free_de()
44 memset(de->name, 0, len); in get_free_de()
52 de = kzalloc(sizeof(struct dlm_direntry) + len, GFP_KERNEL); in get_free_de()
53 return de; in get_free_de()
[all …]
/fs/sysv/
Ddir.c85 struct sysv_dir_entry *de; in sysv_readdir() local
91 de = (struct sysv_dir_entry *)(kaddr+offset); in sysv_readdir()
93 for ( ;(char*)de <= limit; de++) { in sysv_readdir()
94 char *name = de->name; in sysv_readdir()
97 if (!de->inode) in sysv_readdir()
100 offset = (char *)de - kaddr; in sysv_readdir()
104 fs16_to_cpu(SYSV_SB(sb), de->inode), in sysv_readdir()
147 struct sysv_dir_entry *de; in sysv_find_entry() local
161 de = (struct sysv_dir_entry *) kaddr; in sysv_find_entry()
163 for ( ; (char *) de <= kaddr ; de++) { in sysv_find_entry()
[all …]
/fs/fat/
Ddir.c27 struct msdos_dir_entry *de) in fat_make_i_pos() argument
30 | (de - (struct msdos_dir_entry *)bh->b_data); in fat_make_i_pos()
67 struct buffer_head **bh, struct msdos_dir_entry **de) in fat__get_entry() argument
97 *de = (struct msdos_dir_entry *)((*bh)->b_data + offset); in fat__get_entry()
104 struct msdos_dir_entry **de) in fat_get_entry() argument
107 if (*bh && *de && in fat_get_entry()
108 (*de - (struct msdos_dir_entry *)(*bh)->b_data) < MSDOS_SB(dir->i_sb)->dir_per_block - 1) { in fat_get_entry()
110 (*de)++; in fat_get_entry()
113 return fat__get_entry(dir, pos, bh, de); in fat_get_entry()
266 struct buffer_head **bh, struct msdos_dir_entry **de, in fat_parse_long() argument
[all …]
/fs/reiserfs/
Dnamei.c26 static int bin_search_in_dir_item(struct reiserfs_dir_entry *de, loff_t off) in bin_search_in_dir_item() argument
28 struct item_head *ih = de->de_ih; in bin_search_in_dir_item()
29 struct reiserfs_de_head *deh = de->de_deh; in bin_search_in_dir_item()
46 de->de_entry_num = j; in bin_search_in_dir_item()
50 de->de_entry_num = lbound; in bin_search_in_dir_item()
55 static inline void set_de_item_location(struct reiserfs_dir_entry *de, in set_de_item_location() argument
58 de->de_bh = get_last_bh(path); in set_de_item_location()
59 de->de_ih = get_ih(path); in set_de_item_location()
60 de->de_deh = B_I_DEH(de->de_bh, de->de_ih); in set_de_item_location()
61 de->de_item_num = PATH_LAST_POSITION(path); in set_de_item_location()
[all …]
/fs/freevxfs/
Dvxfs_lookup.c83 vxfs_match(int len, const char * const name, struct vxfs_direct *de) in vxfs_match() argument
85 if (len != de->d_namelen) in vxfs_match()
87 if (!de->d_ino) in vxfs_match()
89 return !memcmp(name, de->d_name, len); in vxfs_match()
93 vxfs_next_entry(struct vxfs_direct *de) in vxfs_next_entry() argument
95 return ((struct vxfs_direct *)((char*)de + de->d_reclen)); in vxfs_next_entry()
136 struct vxfs_direct *de; in vxfs_find_entry() local
142 de = (struct vxfs_direct *)(baddr + VXFS_DIRBLKOV(dbp)); in vxfs_find_entry()
144 for (; (caddr_t)de <= limit; de = vxfs_next_entry(de)) { in vxfs_find_entry()
145 if (!de->d_reclen) in vxfs_find_entry()
[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 ((*((unsigned char *) de) - 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.c68 struct iso_directory_record *de; in isofs_find_entry() local
78 de = (struct iso_directory_record *) (bh->b_data + offset); in isofs_find_entry()
80 de_len = *(unsigned char *) de; in isofs_find_entry()
98 memcpy(tmpde, de, slop); in isofs_find_entry()
109 de = tmpde; in isofs_find_entry()
112 dlen = de->name_len[0]; in isofs_find_entry()
113 dpnt = de->name; in isofs_find_entry()
123 ((i = get_rock_ridge_filename(de, tmpname, dir)))) { in isofs_find_entry()
128 dlen = get_joliet_filename(de, tmpname, dir); in isofs_find_entry()
132 dlen = get_acorn_filename(de, tmpname, dir); in isofs_find_entry()
[all …]
/fs/ocfs2/
Ddir.c127 struct ocfs2_dir_entry *de, in ocfs2_skip_dir_trailer() argument
160 struct ocfs2_dir_entry * de, in ocfs2_check_dir_entry() argument
165 const int rlen = le16_to_cpu(de->rec_len); in ocfs2_check_dir_entry()
171 else if (rlen < OCFS2_DIR_REC_LEN(de->name_len)) in ocfs2_check_dir_entry()
173 else if (((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize) in ocfs2_check_dir_entry()
180 offset, (unsigned long long)le64_to_cpu(de->inode), rlen, in ocfs2_check_dir_entry()
181 de->name_len); in ocfs2_check_dir_entry()
187 struct ocfs2_dir_entry *de) in ocfs2_match() argument
189 if (len != de->name_len) in ocfs2_match()
191 if (!de->inode) in ocfs2_match()
[all …]
/fs/ext3/
Dnamei.c164 static int dx_make_map (struct ext3_dir_entry_2 *de, int size,
271 static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_entry_2 *de, in dx_show_leaf() argument
275 char *base = (char *) de; in dx_show_leaf()
279 while ((char *) de < base + size) in dx_show_leaf()
281 if (de->inode) in dx_show_leaf()
285 int len = de->name_len; in dx_show_leaf()
286 char *name = de->name; in dx_show_leaf()
288 ext3fs_dirhash(de->name, de->name_len, &h); in dx_show_leaf()
290 ((char *) de - base)); in dx_show_leaf()
292 space += EXT3_DIR_REC_LEN(de->name_len); in dx_show_leaf()
[all …]
Ddir.c65 struct ext3_dir_entry_2 * de, in ext3_check_dir_entry() argument
70 const int rlen = ext3_rec_len_from_disk(de->rec_len); in ext3_check_dir_entry()
76 else if (rlen < EXT3_DIR_REC_LEN(de->name_len)) in ext3_check_dir_entry()
78 else if (((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize) in ext3_check_dir_entry()
80 else if (le32_to_cpu(de->inode) > in ext3_check_dir_entry()
89 (unsigned long) le32_to_cpu(de->inode), in ext3_check_dir_entry()
90 rlen, de->name_len); in ext3_check_dir_entry()
100 struct ext3_dir_entry_2 *de; in ext3_readdir() local
172 de = (struct ext3_dir_entry_2 *) in ext3_readdir()
180 if (ext3_rec_len_from_disk(de->rec_len) < in ext3_readdir()
[all …]
/fs/ext4/
Dnamei.c164 static int dx_make_map(struct ext4_dir_entry_2 *de, int size,
273 static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext4_dir_entry_2 *de, in dx_show_leaf() argument
277 char *base = (char *) de; in dx_show_leaf()
281 while ((char *) de < base + size) in dx_show_leaf()
283 if (de->inode) in dx_show_leaf()
287 int len = de->name_len; in dx_show_leaf()
288 char *name = de->name; in dx_show_leaf()
290 ext4fs_dirhash(de->name, de->name_len, &h); in dx_show_leaf()
292 ((char *) de - base)); in dx_show_leaf()
294 space += EXT4_DIR_REC_LEN(de->name_len); in dx_show_leaf()
[all …]
/fs/qnx4/
Dnamei.c36 struct qnx4_inode_entry *de; in qnx4_match() local
43 de = (struct qnx4_inode_entry *) (bh->b_data + *offset); in qnx4_match()
45 if ((de->di_status & QNX4_FILE_LINK) != 0) { in qnx4_match()
51 if (!len && (de->di_fname[0] == '.') && (de->di_fname[1] == '\0')) { in qnx4_match()
54 thislen = strlen( de->di_fname ); in qnx4_match()
60 if (strncmp(name, de->di_fname, len) == 0) { in qnx4_match()
61 if ((de->di_status & (QNX4_FILE_USED|QNX4_FILE_LINK)) != 0) { in qnx4_match()
112 struct qnx4_inode_entry *de; in qnx4_lookup() local
120 if (!(bh = qnx4_find_entry(len, dir, name, &de, &ino))) in qnx4_lookup()
123 if ((de->di_status & QNX4_FILE_LINK) == QNX4_FILE_LINK) { in qnx4_lookup()
[all …]
Ddir.c28 struct qnx4_inode_entry *de; in qnx4_readdir() local
49 de = (struct qnx4_inode_entry *) (bh->b_data + offset); in qnx4_readdir()
50 size = strlen(de->di_fname); in qnx4_readdir()
52 if ( !( de->di_status & QNX4_FILE_LINK ) && size > QNX4_SHORT_NAME_MAX ) in qnx4_readdir()
57 if ( ( de->di_status & (QNX4_FILE_USED|QNX4_FILE_LINK) ) != 0 ) { in qnx4_readdir()
58 QNX4DEBUG(("qnx4_readdir:%.*s\n", size, de->di_fname)); in qnx4_readdir()
59 if ( ( de->di_status & QNX4_FILE_LINK ) == 0 ) in qnx4_readdir()
62 le = (struct qnx4_link_info*)de; in qnx4_readdir()
67 if (filldir(dirent, de->di_fname, size, filp->f_pos, ino, DT_UNKNOWN) < 0) { in qnx4_readdir()
/fs/coda/
Ddir.c48 static int coda_dentry_revalidate(struct dentry *de, struct nameidata *nd);
200 static int coda_create(struct inode *dir, struct dentry *de, int mode, struct nameidata *nd) in coda_create() argument
203 const char *name=de->d_name.name; in coda_create()
204 int length=de->d_name.len; in coda_create()
221 d_drop(de); in coda_create()
228 d_drop(de); in coda_create()
235 d_instantiate(de, inode); in coda_create()
239 static int coda_mkdir(struct inode *dir, struct dentry *de, int mode) in coda_mkdir() argument
243 const char *name = de->d_name.name; in coda_mkdir()
244 int len = de->d_name.len; in coda_mkdir()
[all …]
/fs/minix/
Ddir.c87 static inline void *minix_next_entry(void *de, struct minix_sb_info *sbi) in minix_next_entry() argument
89 return (void*)((char*)de + sbi->s_dirsize); in minix_next_entry()
126 minix_dirent *de = (minix_dirent *)p; in minix_readdir() local
127 name = de->name; in minix_readdir()
128 inumber = de->inode; in minix_readdir()
200 minix_dirent *de = (minix_dirent *)p; in minix_find_entry() local
201 namx = de->name; in minix_find_entry()
202 inumber = de->inode; in minix_find_entry()
229 minix_dirent *de; in minix_add_link() local
253 de = (minix_dirent *)p; in minix_add_link()
[all …]
/fs/adfs/
Ddir_f.c219 adfs_dir2obj(struct object_info *obj, struct adfs_direntry *de) in adfs_dir2obj() argument
221 obj->name_len = adfs_readname(obj->name, de->dirobname, ADFS_F_NAME_LEN); in adfs_dir2obj()
222 obj->file_id = adfs_readval(de->dirinddiscadd, 3); in adfs_dir2obj()
223 obj->loadaddr = adfs_readval(de->dirload, 4); in adfs_dir2obj()
224 obj->execaddr = adfs_readval(de->direxec, 4); in adfs_dir2obj()
225 obj->size = adfs_readval(de->dirlen, 4); in adfs_dir2obj()
226 obj->attr = de->newdiratts; in adfs_dir2obj()
233 adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj) in adfs_obj2dir() argument
235 adfs_writeval(de->dirinddiscadd, 3, obj->file_id); in adfs_obj2dir()
236 adfs_writeval(de->dirload, 4, obj->loadaddr); in adfs_obj2dir()
[all …]
/fs/bfs/
Ddir.c34 struct bfs_dirent *de; in bfs_readdir() local
58 de = (struct bfs_dirent *)(bh->b_data + offset); in bfs_readdir()
59 if (de->ino) { in bfs_readdir()
60 int size = strnlen(de->name, BFS_NAMELEN); in bfs_readdir()
61 if (filldir(dirent, de->name, size, f->f_pos, in bfs_readdir()
62 le16_to_cpu(de->ino), in bfs_readdir()
143 struct bfs_dirent *de; in bfs_lookup() local
150 bh = bfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, &de); in bfs_lookup()
152 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); in bfs_lookup()
193 struct bfs_dirent *de; in bfs_unlink() local
[all …]

123