taglinefilesource code
de55arch/alpha/kernel/osf_sys.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de344arch/sparc/kernel/sys_sunos.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de55fs/dcache.c#define COPYDATA(de, newde) \
de56fs/dcache.cmemcpy((void *) &newde->dc_dev, (void *) &de->dc_dev, dcache_datalen)
de77fs/dcache.cstatic inline void remove_lru(struct dir_cache_entry * de)
de79fs/dcache.cstruct dir_cache_entry * next = de->next_lru;
de80fs/dcache.cstruct dir_cache_entry * prev = de->prev_lru;
de86fs/dcache.cstatic inline void add_lru(struct dir_cache_entry * de, struct dir_cache_entry *head)
de90fs/dcache.cde->next_lru = head;
de91fs/dcache.cde->prev_lru = prev;
de92fs/dcache.cprev->next_lru = de;
de93fs/dcache.chead->prev_lru = de;
de96fs/dcache.cstatic inline void update_lru(struct dir_cache_entry * de)
de98fs/dcache.cif (de == *de->lru_head)
de99fs/dcache.c*de->lru_head = de->next_lru;
de101fs/dcache.cremove_lru(de);
de102fs/dcache.cadd_lru(de,*de->lru_head);
de120fs/dcache.cstatic inline void remove_hash(struct dir_cache_entry * de)
de122fs/dcache.cstruct dir_cache_entry * next = de->h.next;
de125fs/dcache.cstruct dir_cache_entry * prev = de->h.prev;
de128fs/dcache.cde->h.next = NULL;
de132fs/dcache.cstatic inline void add_hash(struct dir_cache_entry * de, struct hash_list * hash)
de135fs/dcache.cde->h.next = next;
de136fs/dcache.cde->h.prev = (struct dir_cache_entry *) hash;
de137fs/dcache.cnext->h.prev = de;
de138fs/dcache.chash->next = de;
de146fs/dcache.cstruct dir_cache_entry * de = hash->next;
de148fs/dcache.cfor (de = hash->next ; de != (struct dir_cache_entry *) hash ; de = de->h.next) {
de149fs/dcache.cif (de->dc_dev != dir->i_dev)
de151fs/dcache.cif (de->dir != dir->i_ino)
de153fs/dcache.cif (de->version != dir->i_version)
de155fs/dcache.cif (de->name_len != len)
de157fs/dcache.cif (memcmp(de->name, name, len))
de159fs/dcache.creturn de;
de170fs/dcache.cstruct dir_cache_entry * de;
de176fs/dcache.cde = level2_head;
de177fs/dcache.clevel2_head = de->next_lru;
de178fs/dcache.cremove_hash(de);
de179fs/dcache.cCOPYDATA(old_de, de);
de180fs/dcache.cadd_hash(de, hash);
de186fs/dcache.cstruct dir_cache_entry *de;
de191fs/dcache.cde = find_entry(dir, name, len, hash);
de192fs/dcache.cif (!de)
de194fs/dcache.c*ino = de->ino;
de195fs/dcache.cmove_to_level2(de, hash);
de202fs/dcache.cstruct dir_cache_entry *de;
de207fs/dcache.cif ((de = find_entry(dir, name, len, hash)) != NULL) {
de208fs/dcache.cde->ino = ino;
de209fs/dcache.cupdate_lru(de);
de212fs/dcache.cde = level1_head;
de213fs/dcache.clevel1_head = de->next_lru;
de214fs/dcache.cremove_hash(de);
de215fs/dcache.cde->dc_dev = dir->i_dev;
de216fs/dcache.cde->dir = dir->i_ino;
de217fs/dcache.cde->version = dir->i_version;
de218fs/dcache.cde->ino = ino;
de219fs/dcache.cde->name_len = len;
de220fs/dcache.cmemcpy(de->name, name, len);
de221fs/dcache.cadd_hash(de, hash);
de73fs/ext/dir.cstruct ext_dir_entry * de;
de88fs/ext/dir.cde = (struct ext_dir_entry *) (bh->b_data + i);
de89fs/ext/dir.cif (!de->rec_len)
de91fs/ext/dir.ci += de->rec_len;
de94fs/ext/dir.cde = (struct ext_dir_entry *) (offset + bh->b_data);
de96fs/ext/dir.cif (de->rec_len < 8 || de->rec_len % 8 != 0 ||
de97fs/ext/dir.cde->rec_len < de->name_len + 8 ||
de98fs/ext/dir.c(de->rec_len + (off_t) filp->f_pos - 1) / 1024 > ((off_t) filp->f_pos / 1024)) {
de103fs/ext/dir.coffset, de->rec_len, de->name_len);
de109fs/ext/dir.cif (de->inode) {
de110fs/ext/dir.cerror = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode);
de114fs/ext/dir.coffset += de->rec_len;
de115fs/ext/dir.cfilp->f_pos += de->rec_len;
de116fs/ext/dir.c((char *) de) += de->rec_len;
de56fs/ext/namei.cstatic int ext_match(int len,const char * name,struct ext_dir_entry * de)
de58fs/ext/namei.cif (!de || !de->inode || len > EXT_NAME_LEN)
de61fs/ext/namei.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de63fs/ext/namei.cif (len != de->name_len)
de65fs/ext/namei.creturn !memcmp(name, de->name, len);
de85fs/ext/namei.cstruct ext_dir_entry * de;
de105fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de107fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data) {
de113fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de117fs/ext/namei.cif (de->rec_len < 8 || de->rec_len % 8 != 0 ||
de118fs/ext/namei.cde->rec_len < de->name_len + 8 ||
de119fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
de124fs/ext/namei.cde->rec_len, de->name_len);
de125fs/ext/namei.cde = (struct ext_dir_entry *) (bh->b_data+BLOCK_SIZE);
de131fs/ext/namei.cif (ext_match(namelen,name,de)) {
de132fs/ext/namei.c*res_dir = de;
de134fs/ext/namei.cif (offset + de->rec_len < dir->i_size &&
de135fs/ext/namei.c((char *)de) + de->rec_len < BLOCK_SIZE+bh->b_data)
de137fs/ext/namei.c((char *) de + de->rec_len);
de142fs/ext/namei.coffset += de->rec_len;
de144fs/ext/namei.c*prev_dir = de;
de145fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de155fs/ext/namei.cstruct ext_dir_entry * de;
de165fs/ext/namei.cif (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) {
de169fs/ext/namei.cino = de->inode;
de196fs/ext/namei.cstruct ext_dir_entry * de, * de1;
de215fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de217fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) {
de226fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de236fs/ext/namei.cde->inode = 0;
de237fs/ext/namei.cde->rec_len = BLOCK_SIZE
de239fs/ext/namei.cde->name_len = 0;
de240fs/ext/namei.coffset += de->rec_len;
de241fs/ext/namei.cdir->i_size += de->rec_len;
de256fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de259fs/ext/namei.cde->inode=0;
de260fs/ext/namei.cde->rec_len = rec_len;
de261fs/ext/namei.cdir->i_size += de->rec_len;
de267fs/ext/namei.cif (de->rec_len < 8 || de->rec_len % 4 != 0 ||
de268fs/ext/namei.cde->rec_len < de->name_len + 8 ||
de269fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
de274fs/ext/namei.cde->rec_len, de->name_len);
de278fs/ext/namei.cif (!de->inode && de->rec_len >= rec_len) {
de279fs/ext/namei.cif (de->rec_len > rec_len
de280fs/ext/namei.c&& de->rec_len - rec_len >= EXT_DIR_MIN_SIZE) {
de285fs/ext/namei.cde1 = (struct ext_dir_entry *) ((char *) de + rec_len);
de287fs/ext/namei.cde1->rec_len = de->rec_len - rec_len;
de289fs/ext/namei.cde->rec_len = rec_len;
de293fs/ext/namei.cde->name_len = namelen;
de295fs/ext/namei.cde->name[i] = name[i];
de297fs/ext/namei.c*res_dir = de;
de300fs/ext/namei.coffset += de->rec_len;
de301fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de312fs/ext/namei.cstruct ext_dir_entry * de;
de325fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de333fs/ext/namei.cde->inode = inode->i_ino;
de345fs/ext/namei.cstruct ext_dir_entry * de;
de349fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de384fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de392fs/ext/namei.cde->inode = inode->i_ino;
de404fs/ext/namei.cstruct ext_dir_entry * de;
de406fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de434fs/ext/namei.cde = (struct ext_dir_entry *) dir_block->b_data;
de435fs/ext/namei.cde->inode=inode->i_ino;
de436fs/ext/namei.cde->rec_len=16;
de437fs/ext/namei.cde->name_len=1;
de438fs/ext/namei.cstrcpy(de->name,".");
de439fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de440fs/ext/namei.cde->inode = dir->i_ino;
de441fs/ext/namei.cde->rec_len=16;
de442fs/ext/namei.cde->name_len=2;
de443fs/ext/namei.cstrcpy(de->name,"..");
de451fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de458fs/ext/namei.cde->inode = inode->i_ino;
de475fs/ext/namei.cstruct ext_dir_entry * de, * de1;
de482fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de483fs/ext/namei.cde1 = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de484fs/ext/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de485fs/ext/namei.cstrcmp(".",de->name) || strcmp("..",de1->name)) {
de490fs/ext/namei.coffset = de->rec_len + de1->rec_len;
de491fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de1 + de1->rec_len);
de493fs/ext/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
de500fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de502fs/ext/namei.cif (de->rec_len < 8 || de->rec_len %4 != 0 ||
de503fs/ext/namei.cde->rec_len < de->name_len + 8) {
de508fs/ext/namei.coffset, de->rec_len, de->name_len);
de512fs/ext/namei.cif (de->inode) {
de516fs/ext/namei.coffset += de->rec_len;
de517fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de523fs/ext/namei.cstatic inline void ext_merge_entries (struct ext_dir_entry * de,
de527fs/ext/namei.cde->rec_len += nde->rec_len;
de529fs/ext/namei.cpde->rec_len += de->rec_len;
de537fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de540fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de545fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de569fs/ext/namei.cde->inode = 0;
de570fs/ext/namei.cde->name_len = 0;
de571fs/ext/namei.cext_merge_entries (de, pde, nde);
de591fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de595fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de598fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de613fs/ext/namei.cde->inode = 0;
de614fs/ext/namei.cde->name_len = 0;
de615fs/ext/namei.cext_merge_entries (de, pde, nde);
de632fs/ext/namei.cstruct ext_dir_entry * de;
de660fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de669fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de677fs/ext/namei.cde->inode = inode->i_ino;
de687fs/ext/namei.cstruct ext_dir_entry * de;
de700fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de707fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de713fs/ext/namei.cde->inode = oldinode->i_ino;
de75fs/ext2/dir.cstruct ext2_dir_entry * de, struct buffer_head * bh,
de80fs/ext2/dir.cif (de->rec_len < EXT2_DIR_REC_LEN(1))
de82fs/ext2/dir.celse if (de->rec_len % 4 != 0)
de84fs/ext2/dir.celse if (de->rec_len < EXT2_DIR_REC_LEN(de->name_len))
de86fs/ext2/dir.celse if (dir && ((char *) de - bh->b_data) + de->rec_len >
de89fs/ext2/dir.celse if (dir && de->inode > dir->i_sb->u.ext2_sb.s_es->s_inodes_count)
de95fs/ext2/dir.cdir->i_ino, error_msg, offset, (unsigned long) de->inode,
de96fs/ext2/dir.cde->rec_len, de->name_len);
de107fs/ext2/dir.cstruct ext2_dir_entry * de;
de156fs/ext2/dir.cde = (struct ext2_dir_entry *) 
de164fs/ext2/dir.cif (de->rec_len < EXT2_DIR_REC_LEN(1))
de166fs/ext2/dir.ci += de->rec_len;
de176fs/ext2/dir.cde = (struct ext2_dir_entry *) (bh->b_data + offset);
de177fs/ext2/dir.cif (!ext2_check_dir_entry ("ext2_readdir", inode, de,
de186fs/ext2/dir.coffset += de->rec_len;
de187fs/ext2/dir.cif (de->inode) {
de195fs/ext2/dir.cdcache_add(inode, de->name, de->name_len, de->inode);
de197fs/ext2/dir.cerror = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode);
de204fs/ext2/dir.cfilp->f_pos += de->rec_len;
de45fs/ext2/namei.cstruct ext2_dir_entry * de)
de47fs/ext2/namei.cif (!de || !de->inode || len > EXT2_NAME_LEN)
de52fs/ext2/namei.cif (!len && de->name_len == 1 && (de->name[0] == '.') &&
de53fs/ext2/namei.c(de->name[1] == '\0'))
de55fs/ext2/namei.cif (len != de->name_len)
de57fs/ext2/namei.creturn !memcmp(name, de->name, len);
de106fs/ext2/namei.cstruct ext2_dir_entry * de;
de129fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de131fs/ext2/namei.cwhile ((char *) de < dlimit) {
de133fs/ext2/namei.cde, bh, offset))
de135fs/ext2/namei.cif (de->inode != 0 && ext2_match (namelen, name, de)) {
de140fs/ext2/namei.c*res_dir = de;
de143fs/ext2/namei.coffset += de->rec_len;
de144fs/ext2/namei.cde = (struct ext2_dir_entry *)
de145fs/ext2/namei.c((char *) de + de->rec_len);
de169fs/ext2/namei.cstruct ext2_dir_entry * de;
de192fs/ext2/namei.cif (!(bh = ext2_find_entry (dir, name, len, &de))) {
de198fs/ext2/namei.cino = de->inode;
de227fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de257fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de260fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
de274fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de275fs/ext2/namei.cde->inode = 0;
de276fs/ext2/namei.cde->rec_len = sb->s_blocksize;
de283fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de286fs/ext2/namei.cif (!ext2_check_dir_entry ("ext2_add_entry", dir, de, bh,
de292fs/ext2/namei.cif (de->inode != 0 && ext2_match (namelen, name, de)) {
de297fs/ext2/namei.cif ((de->inode == 0 && de->rec_len >= rec_len) ||
de298fs/ext2/namei.c(de->rec_len >= EXT2_DIR_REC_LEN(de->name_len) + rec_len)) {
de299fs/ext2/namei.coffset += de->rec_len;
de300fs/ext2/namei.cif (de->inode) {
de301fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de +
de302fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len));
de303fs/ext2/namei.cde1->rec_len = de->rec_len -
de304fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len);
de305fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de306fs/ext2/namei.cde = de1;
de308fs/ext2/namei.cde->inode = 0;
de309fs/ext2/namei.cde->name_len = namelen;
de310fs/ext2/namei.cmemcpy (de->name, name, namelen);
de326fs/ext2/namei.c*res_dir = de;
de330fs/ext2/namei.coffset += de->rec_len;
de331fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de344fs/ext2/namei.cstruct ext2_dir_entry * de, * pde;
de349fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de352fs/ext2/namei.cde, bh, i))
de354fs/ext2/namei.cif (de == dir)  {
de360fs/ext2/namei.ci += de->rec_len;
de361fs/ext2/namei.cpde = de;
de362fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de372fs/ext2/namei.cstruct ext2_dir_entry * de;
de386fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de394fs/ext2/namei.cde->inode = inode->i_ino;
de396fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de413fs/ext2/namei.cstruct ext2_dir_entry * de;
de418fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de450fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de458fs/ext2/namei.cde->inode = inode->i_ino;
de460fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de476fs/ext2/namei.cstruct ext2_dir_entry * de;
de481fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de507fs/ext2/namei.cde = (struct ext2_dir_entry *) dir_block->b_data;
de508fs/ext2/namei.cde->inode = inode->i_ino;
de509fs/ext2/namei.cde->name_len = 1;
de510fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de511fs/ext2/namei.cstrcpy (de->name, ".");
de512fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de513fs/ext2/namei.cde->inode = dir->i_ino;
de514fs/ext2/namei.cde->rec_len = inode->i_sb->s_blocksize - EXT2_DIR_REC_LEN(1);
de515fs/ext2/namei.cde->name_len = 2;
de516fs/ext2/namei.cstrcpy (de->name, "..");
de524fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de532fs/ext2/namei.cde->inode = inode->i_ino;
de534fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de555fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de567fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de568fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de569fs/ext2/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de570fs/ext2/namei.cstrcmp (".", de->name) || strcmp ("..", de1->name)) {
de576fs/ext2/namei.coffset = de->rec_len + de1->rec_len;
de577fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de1 + de1->rec_len);
de579fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
de589fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de591fs/ext2/namei.cif (!ext2_check_dir_entry ("empty_dir", inode, de, bh,
de596fs/ext2/namei.cif (de->inode) {
de600fs/ext2/namei.coffset += de->rec_len;
de601fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de612fs/ext2/namei.cstruct ext2_dir_entry * de;
de618fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de623fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de629fs/ext2/namei.cif (de->inode != inode->i_ino) {
de649fs/ext2/namei.celse if (de->inode != inode->i_ino)
de662fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de695fs/ext2/namei.cstruct ext2_dir_entry * de;
de702fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de705fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de714fs/ext2/namei.cif (de->inode != inode->i_ino) {
de731fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de756fs/ext2/namei.cstruct ext2_dir_entry * de;
de803fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de812fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de820fs/ext2/namei.cde->inode = inode->i_ino;
de822fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de837fs/ext2/namei.cstruct ext2_dir_entry * de;
de856fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de863fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de869fs/ext2/namei.cde->inode = oldinode->i_ino;
de871fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de108fs/fat/dir.cstruct msdos_dir_entry *de;
de138fs/fat/dir.cino = fat_get_entry(inode,&filp->f_pos,&bh,&de);
de141fs/fat/dir.cif (MSDOS_SB(sb)->options.isvfat && (de->name[0] == (__s8) DELETED_FLAG)) {
de144fs/fat/dir.c} else if (MSDOS_SB(sb)->options.isvfat && de->attr ==  ATTR_EXT) {
de160fs/fat/dir.cds = (struct msdos_dir_slot *) de;
de201fs/fat/dir.cino = fat_get_entry(inode,&filp->f_pos,&bh,&de);
de208fs/fat/dir.cds = (struct msdos_dir_slot *) de;
de212fs/fat/dir.c} else if (!IS_FREE(de->name) && !(de->attr & ATTR_VOLUME)) {
de221fs/fat/dir.csum = (((sum&1)<<7)|((sum&0xfe)>>1)) + de->name[i];
de230fs/fat/dir.cif ((de->attr & ATTR_HIDDEN) && MSDOS_SB(sb)->options.dotsOK) {
de236fs/fat/dir.cif (!(c = de->name[i])) break;
de248fs/fat/dir.cif (!(c = de->ext[i2])) break;
de256fs/fat/dir.cif (!strcmp(de->name,MSDOS_DOT))
de258fs/fat/dir.celse if (!strcmp(de->name,MSDOS_DOTDOT))
de296fs/fat/dir.cino = fat_get_entry(inode,&filp->f_pos,&bh,&de);  
de284fs/fat/misc.cstruct msdos_dir_entry **de)
de306fs/fat/misc.c*de = (struct msdos_dir_entry *) ((*bh)->b_data+(offset &
de270fs/hpfs/hpfs.hstatic inline dnode_secno de_down_pointer (struct hpfs_dirent *de)
de272fs/hpfs/hpfs.hreturn *(dnode_secno *) ((void *) de + de->length - 4);
de291fs/hpfs/hpfs.hstatic inline struct hpfs_dirent *de_next_de (struct hpfs_dirent *de)
de293fs/hpfs/hpfs.hreturn (void *) de + de->length;
de340fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de505fs/hpfs/hpfs_fs.cde = map_dirent(s->s_mounted, root_dno, "\001\001", 2, &qbh);
de506fs/hpfs/hpfs_fs.cif (!root_dno || !de) {
de514fs/hpfs/hpfs_fs.cs->s_mounted->i_atime = local_to_gmt(de->read_date);
de515fs/hpfs/hpfs_fs.cs->s_mounted->i_mtime = local_to_gmt(de->write_date);
de516fs/hpfs/hpfs_fs.cs->s_mounted->i_ctime = local_to_gmt(de->creation_date);
de790fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de796fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de801fs/hpfs/hpfs_fs.cfor (; de < de_end; de = de_next_de(de)) {
de802fs/hpfs/hpfs_fs.cif (de->down)
de803fs/hpfs/hpfs_fs.ccount_dnodes(inode, de_down_pointer(de),
de805fs/hpfs/hpfs_fs.cif (de->directory && !de->first)
de807fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1123fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1141fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh);
de1143fs/hpfs/hpfs_fs.cde = map_dirent(dir,
de1147fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh);
de1153fs/hpfs/hpfs_fs.cif (!de)
de1160fs/hpfs/hpfs_fs.cif (de->directory)
de1161fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1163fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1178fs/hpfs/hpfs_fs.cinode->i_atime = local_to_gmt(de->read_date);
de1179fs/hpfs/hpfs_fs.cinode->i_mtime = local_to_gmt(de->write_date);
de1180fs/hpfs/hpfs_fs.cinode->i_ctime = local_to_gmt(de->creation_date);
de1181fs/hpfs/hpfs_fs.cif (de->read_only)
de1183fs/hpfs/hpfs_fs.cif (!de->directory) {
de1184fs/hpfs/hpfs_fs.cinode->i_size = de->file_size;
de1246fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1260fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1266fs/hpfs/hpfs_fs.cfor ( ; de < de_end; de = de_next_de(de)) {
de1271fs/hpfs/hpfs_fs.cl = len < de->namelen ? len : de->namelen;
de1272fs/hpfs/hpfs_fs.ct = memcasecmp(name, de->name, l);
de1278fs/hpfs/hpfs_fs.ct = len - de->namelen;
de1281fs/hpfs/hpfs_fs.creturn de;
de1291fs/hpfs/hpfs_fs.cif (de->down) {
de1292fs/hpfs/hpfs_fs.cdnode_secno sub_dno = de_down_pointer(de);
de1307fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1371fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1406fs/hpfs/hpfs_fs.cde = map_pos_dirent(inode, &filp->f_pos, &qbh);
de1407fs/hpfs/hpfs_fs.cif (!de) {
de1411fs/hpfs/hpfs_fs.cnamelen = de->namelen;
de1412fs/hpfs/hpfs_fs.ctranslate_hpfs_name(de->name, namelen, tempname, lc);
de1413fs/hpfs/hpfs_fs.cif (de->directory)
de1414fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1416fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1438fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1461fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, qbh);
de1467fs/hpfs/hpfs_fs.cif (!de) {
de1478fs/hpfs/hpfs_fs.cif (de->down)
de1487fs/hpfs/hpfs_fs.cif (de->first || de->last) {
de1492fs/hpfs/hpfs_fs.creturn de;
de1501fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1537fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, &qbh);
de1538fs/hpfs/hpfs_fs.cif (!de || !de->down)
de1544fs/hpfs/hpfs_fs.cdno = de_down_pointer(de);
de1565fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de, *de_end;
de1568fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1571fs/hpfs/hpfs_fs.cfor (i = 1; de < de_end; i++, de = de_next_de(de)) {
de1573fs/hpfs/hpfs_fs.creturn de;
de1574fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de63fs/isofs/dir.cstatic int parent_inode_number(struct inode * inode, struct iso_directory_record * de)
de74fs/isofs/dir.creturn isofs_lookup_grandparent(inode, find_rock_ridge_relocation(de, inode));
de120fs/isofs/dir.cstruct iso_directory_record *de;
de150fs/isofs/dir.cde = (struct iso_directory_record *) (bh->b_data + offset);
de153fs/isofs/dir.cde_len = *(unsigned char *) de;
de179fs/isofs/dir.cmemcpy(tmpde, de, bufsize - offset);
de188fs/isofs/dir.cde = tmpde;
de193fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 0) {
de201fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 1) {
de202fs/isofs/dir.cinode_number = parent_inode_number(inode, de);
de217fs/isofs/dir.cif (de->flags[-high_sierra] & 5) {
de224fs/isofs/dir.clen = de->name_len[0];
de225fs/isofs/dir.cname = de->name;
de226fs/isofs/dir.crrflag = get_rock_ridge_filename(de, &name, &len, inode);
de681fs/isofs/inode.cstruct iso_directory_record * de;
de688fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de689fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de695fs/isofs/inode.coffset += *((unsigned char *) de);
de705fs/isofs/inode.cif (de->name_len[0] == 1 && de->name[0] == 1) 
de707fs/isofs/inode.cparent_dir = find_rock_ridge_relocation(de, parent);
de708fs/isofs/inode.cdirectory_size = isonum_733 (de->size);
de727fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de734fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de754fs/isofs/inode.coffset += *((unsigned char *) de);
de760fs/isofs/inode.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de763fs/isofs/inode.cde = (struct iso_directory_record *) ((char *)cpnt);
de776fs/isofs/inode.cif (find_rock_ridge_relocation(de, parent) == extent){
de45fs/isofs/namei.cif (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen);
de73fs/isofs/namei.cstruct iso_directory_record * de;
de89fs/isofs/namei.cde = (struct iso_directory_record *) (bh->b_data + offset);
de96fs/isofs/namei.cif (*((unsigned char *) de) == 0) {
de108fs/isofs/namei.coffset += *((unsigned char *) de);
de109fs/isofs/namei.cf_pos += *((unsigned char *) de);
de116fs/isofs/namei.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de120fs/isofs/namei.cde = (struct iso_directory_record *) cpnt;
de133fs/isofs/namei.cif (de->name[0]==0 && de->name_len[0]==1) {
de140fs/isofs/namei.cif (de->name[0]==1 && de->name_len[0]==1) {
de153fs/isofs/namei.cdlen = de->name_len[0];
de154fs/isofs/namei.cdpnt = de->name;
de156fs/isofs/namei.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir);
de169fs/isofs/namei.cde->name[i] = c;
de181fs/isofs/namei.cif(   !(de->flags[-dir->i_sb->u.isofs_sb.s_high_sierra] & 5)
de199fs/isofs/namei.cfind_rock_ridge_relocation(de,dir));
de97fs/isofs/rock.cint find_rock_ridge_relocation(struct iso_directory_record * de, 
de109fs/isofs/rock.cif (de->name[0]==1 && de->name_len[0]==1) flag = 1;
de111fs/isofs/rock.cretval = isonum_733 (de->extent);
de115fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de170fs/isofs/rock.cint get_rock_ridge_filename(struct iso_directory_record * de,
de181fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de254fs/isofs/rock.cint parse_rock_ridge_inode(struct iso_directory_record * de,
de262fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de65fs/minix/dir.cstruct minix_dir_entry * de;
de81fs/minix/dir.cde = (struct minix_dir_entry *) (offset + bh->b_data);
de82fs/minix/dir.cif (de->inode) {
de83fs/minix/dir.cint size = strnlen(de->name, info->s_namelen);
de84fs/minix/dir.cif (filldir(dirent, de->name, size, filp->f_pos, de->inode) < 0) {
de44fs/minix/namei.cstruct minix_dir_entry * de;
de46fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + *offset);
de48fs/minix/namei.cif (!de->inode || len > info->s_namelen)
de51fs/minix/namei.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de53fs/minix/namei.creturn namecompare(len,info->s_namelen,name,de->name);
de111fs/minix/namei.cstruct minix_dir_entry * de;
de121fs/minix/namei.cif (!(bh = minix_find_entry(dir,name,len,&de))) {
de125fs/minix/namei.cino = de->inode;
de153fs/minix/namei.cstruct minix_dir_entry * de;
de178fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
de181fs/minix/namei.cde->inode = 0;
de185fs/minix/namei.cif (de->inode) {
de186fs/minix/namei.cif (namecompare(namelen, info->s_namelen, name, de->name)) {
de194fs/minix/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de197fs/minix/namei.c*res_dir = de;
de217fs/minix/namei.cstruct minix_dir_entry * de;
de230fs/minix/namei.cerror = minix_add_entry(dir,name,len, &bh ,&de);
de238fs/minix/namei.cde->inode = inode->i_ino;
de251fs/minix/namei.cstruct minix_dir_entry * de;
de255fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de287fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de295fs/minix/namei.cde->inode = inode->i_ino;
de308fs/minix/namei.cstruct minix_dir_entry * de;
de316fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de341fs/minix/namei.cde = (struct minix_dir_entry *) dir_block->b_data;
de342fs/minix/namei.cde->inode=inode->i_ino;
de343fs/minix/namei.cstrcpy(de->name,".");
de344fs/minix/namei.cde = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize);
de345fs/minix/namei.cde->inode = dir->i_ino;
de346fs/minix/namei.cstrcpy(de->name,"..");
de354fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de361fs/minix/namei.cde->inode = inode->i_ino;
de378fs/minix/namei.cstruct minix_dir_entry * de;
de394fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
de395fs/minix/namei.cif (!de->inode || strcmp(de->name,"."))
de397fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize);
de398fs/minix/namei.cif (!de->inode || strcmp(de->name,".."))
de408fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
de410fs/minix/namei.cif (de->inode) {
de435fs/minix/namei.cstruct minix_dir_entry * de;
de438fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de443fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de461fs/minix/namei.cif (de->inode != inode->i_ino) {
de471fs/minix/namei.cde->inode = 0;
de492fs/minix/namei.cstruct minix_dir_entry * de;
de497fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de500fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de505fs/minix/namei.cif (de->inode != inode->i_ino) {
de516fs/minix/namei.cif (de->inode != inode->i_ino) {
de526fs/minix/namei.cde->inode = 0;
de544fs/minix/namei.cstruct minix_dir_entry * de;
de572fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de581fs/minix/namei.ci = minix_add_entry(dir, name, len, &bh, &de);
de589fs/minix/namei.cde->inode = inode->i_ino;
de600fs/minix/namei.cstruct minix_dir_entry * de;
de613fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de620fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de626fs/minix/namei.cde->inode = oldinode->i_ino;
de150fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
de172fs/msdos/namei.creturn fat_scan(dir,msdos_name,bh,de,ino,scantype);
de181fs/msdos/namei.cstruct msdos_dir_entry *de;
de214fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
de261fs/msdos/namei.cstruct msdos_dir_entry *de;
de264fs/msdos/namei.cif ((res = fat_scan(dir,NULL,&bh,&de,&ino,SCAN_ANY)) < 0) {
de268fs/msdos/namei.cif ((res = fat_scan(dir,NULL,&bh,&de,&ino,SCAN_ANY)) < 0) return res;
de275fs/msdos/namei.cmemcpy(de->name,name,MSDOS_NAME);
de276fs/msdos/namei.cmemset(de->unused, 0, sizeof(de->unused));
de277fs/msdos/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de278fs/msdos/namei.cde->attr = is_hid ? (de->attr|ATTR_HIDDEN) : (de->attr&~ATTR_HIDDEN);
de279fs/msdos/namei.cde->start = 0;
de280fs/msdos/namei.cfat_date_unix2dos(dir->i_mtime,&de->time,&de->date);
de281fs/msdos/namei.cde->size = 0;
de300fs/msdos/namei.cstruct msdos_dir_entry *de;
de317fs/msdos/namei.cif (fat_scan(dir,msdos_name,&bh,&de,&ino,SCAN_HID) >= 0) {
de323fs/msdos/namei.cif (fat_scan(dir,msdos_name,&bh,&de,&ino,SCAN_NOTHID) >= 0) {
de362fs/msdos/namei.cstruct msdos_dir_entry *de;
de369fs/msdos/namei.cwhile (fat_get_entry(dir,&pos,&bh,&de) > -1)
de370fs/msdos/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de371fs/msdos/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de388fs/msdos/namei.cstruct msdos_dir_entry *de;
de396fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
de411fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de426fs/msdos/namei.cstruct msdos_dir_entry *de;
de439fs/msdos/namei.cif (fat_scan(dir,msdos_name,&bh,&de,&ino,SCAN_ANY) >= 0) {
de492fs/msdos/namei.cstruct msdos_dir_entry *de;
de497fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
de515fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de74fs/proc/inode.cstruct inode * proc_get_inode(struct super_block * s, int ino, struct proc_dir_entry * de)
de78fs/proc/inode.cinode->u.generic_ip = (void *) de;
de79fs/proc/inode.cif (de) {
de80fs/proc/inode.cif (de->mode) {
de81fs/proc/inode.cinode->i_mode = de->mode;
de82fs/proc/inode.cinode->i_uid = de->uid;
de83fs/proc/inode.cinode->i_gid = de->gid;
de85fs/proc/inode.cif (de->size)
de86fs/proc/inode.cinode->i_size = de->size;
de87fs/proc/inode.cif (de->ops)
de88fs/proc/inode.cinode->i_op = de->ops;
de89fs/proc/inode.cif (de->nlink)
de90fs/proc/inode.cinode->i_nlink = de->nlink;
de91fs/proc/inode.cif (de->fill_inode)
de92fs/proc/inode.cde->fill_inode(inode);
de377fs/proc/root.cint proc_match(int len,const char * name,struct proc_dir_entry * de)
de379fs/proc/root.cif (!de || !de->low_ino)
de382fs/proc/root.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de384fs/proc/root.cif (de->namelen != len)
de386fs/proc/root.creturn !memcmp(name, de->name, len);
de392fs/proc/root.cstruct proc_dir_entry * de;
de401fs/proc/root.cde = (struct proc_dir_entry *) dir->u.generic_ip;
de402fs/proc/root.cif (!de) {
de416fs/proc/root.cinode = proc_get_inode(dir->i_sb, de->parent->low_ino, de->parent);
de426fs/proc/root.cfor (de = de->subdir; de ; de = de->next) {
de427fs/proc/root.cif (proc_match(len, name, de))
de430fs/proc/root.cif (!de) {
de435fs/proc/root.cino = de->low_ino | (dir->i_ino & ~(0xffff));
de437fs/proc/root.cif (!(*result = proc_get_inode(dir->i_sb, ino, de))) {
de501fs/proc/root.cstruct proc_dir_entry * de;
de508fs/proc/root.cde = (struct proc_dir_entry *) inode->u.generic_ip;
de509fs/proc/root.cif (!de)
de520fs/proc/root.cif (filldir(dirent, "..", 2, i, de->parent->low_ino) < 0)
de527fs/proc/root.cde = de->subdir;
de530fs/proc/root.cif (!de)
de534fs/proc/root.cde = de->next;
de539fs/proc/root.cif (filldir(dirent, de->name, de->namelen, filp->f_pos, ino | de->low_ino) < 0)
de542fs/proc/root.cde = de->next;
de543fs/proc/root.c} while (de);
de24fs/readdir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de18fs/smbfs/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de74fs/sysv/dir.cstruct sysv_dir_entry * de, sde;
de89fs/sysv/dir.cde = (struct sysv_dir_entry *) (offset + bh_data);
de90fs/sysv/dir.cif (de->inode) {
de94fs/sysv/dir.cmemcpy(&sde, de, sizeof(struct sysv_dir_entry));
de42fs/sysv/namei.cstatic int sysv_match(int len, const char * name, struct sysv_dir_entry * de)
de44fs/sysv/namei.cif (!de->inode || len > SYSV_NAMELEN)
de47fs/sysv/namei.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de49fs/sysv/namei.creturn namecompare(len,SYSV_NAMELEN,name,de->name);
de107fs/sysv/namei.cstruct sysv_dir_entry * de;
de117fs/sysv/namei.cif (!(bh = sysv_find_entry(dir,name,len,&de))) {
de121fs/sysv/namei.cino = de->inode;
de150fs/sysv/namei.cstruct sysv_dir_entry * de;
de172fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + offset);
de176fs/sysv/namei.cde->inode = 0;
de180fs/sysv/namei.cif (de->inode) {
de181fs/sysv/namei.cif (namecompare(namelen, SYSV_NAMELEN, name, de->name)) {
de189fs/sysv/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de191fs/sysv/namei.c*res_dir = de;
de210fs/sysv/namei.cstruct sysv_dir_entry * de;
de223fs/sysv/namei.cerror = sysv_add_entry(dir,name,len, &bh ,&de);
de231fs/sysv/namei.cde->inode = inode->i_ino;
de244fs/sysv/namei.cstruct sysv_dir_entry * de;
de248fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de280fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de288fs/sysv/namei.cde->inode = inode->i_ino;
de301fs/sysv/namei.cstruct sysv_dir_entry * de;
de307fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de332fs/sysv/namei.cde = (struct sysv_dir_entry *) (dir_block->b_data + 0*SYSV_DIRSIZE);
de333fs/sysv/namei.cde->inode = inode->i_ino;
de334fs/sysv/namei.cstrcpy(de->name,"."); /* rest of de->name is zero, see sysv_new_block */
de335fs/sysv/namei.cde = (struct sysv_dir_entry *) (dir_block->b_data + 1*SYSV_DIRSIZE);
de336fs/sysv/namei.cde->inode = dir->i_ino;
de337fs/sysv/namei.cstrcpy(de->name,".."); /* rest of de->name is zero, see sysv_new_block */
de345fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de352fs/sysv/namei.cde->inode = inode->i_ino;
de370fs/sysv/namei.cstruct sysv_dir_entry * de;
de384fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + 0*SYSV_DIRSIZE);
de385fs/sysv/namei.cif (!de->inode || strcmp(de->name,"."))
de387fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + 1*SYSV_DIRSIZE);
de388fs/sysv/namei.cif (!de->inode || strcmp(de->name,".."))
de400fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + offset);
de403fs/sysv/namei.cif (de->inode) {
de427fs/sysv/namei.cstruct sysv_dir_entry * de;
de430fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de435fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de453fs/sysv/namei.cif (de->inode != inode->i_ino) {
de463fs/sysv/namei.cde->inode = 0;
de483fs/sysv/namei.cstruct sysv_dir_entry * de;
de488fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de491fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de496fs/sysv/namei.cif (de->inode != inode->i_ino) {
de507fs/sysv/namei.cif (de->inode != inode->i_ino) {
de517fs/sysv/namei.cde->inode = 0;
de534fs/sysv/namei.cstruct sysv_dir_entry * de;
de567fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de576fs/sysv/namei.ci = sysv_add_entry(dir, name, len, &bh, &de);
de584fs/sysv/namei.cde->inode = inode->i_ino;
de595fs/sysv/namei.cstruct sysv_dir_entry * de;
de608fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de615fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de621fs/sysv/namei.cde->inode = oldinode->i_ino;
de197fs/vfat/namei.cstatic void dump_de(struct msdos_dir_entry *de)
de200fs/vfat/namei.cunsigned char *p = (unsigned char *) de;
de546fs/vfat/namei.cstruct msdos_dir_entry *de;
de559fs/vfat/namei.cino = fat_get_entry(dir,&curr,&bh,&de);
de563fs/vfat/namei.cdone = IS_FREE(de->name);
de584fs/vfat/namei.cino = fat_get_entry(dir,&curr,&bh,&de);
de589fs/vfat/namei.cino = fat_get_entry(dir,&curr,&bh,&de);
de647fs/vfat/namei.cstruct msdos_dir_entry *de;
de706fs/vfat/namei.cde = (struct msdos_dir_entry *) ps;
de708fs/vfat/namei.cstrncpy(de->name, msdos_name, MSDOS_NAME);
de717fs/vfat/namei.cstruct msdos_dir_entry *de;
de722fs/vfat/namei.cde = (struct msdos_dir_entry *) ds;
de728fs/vfat/namei.cstrncpy(de->name, MSDOS_DOT, MSDOS_NAME);
de730fs/vfat/namei.cstrncpy(de->name, MSDOS_DOT, MSDOS_NAME);
de736fs/vfat/namei.cres = vfat_format_name('x', name, len, de->name, 1);
de809fs/vfat/namei.cstruct msdos_dir_entry *de;
de849fs/vfat/namei.cde = (struct msdos_dir_entry *) ds;
de865fs/vfat/namei.csinfo_out->ino = fat_get_entry(dir,&offset,&bh,&de);
de870fs/vfat/namei.cmemcpy(de, ps, sizeof(struct msdos_dir_slot));
de880fs/vfat/namei.cmemset(de->unused, 0, sizeof(de->unused));
de881fs/vfat/namei.cfat_date_unix2dos(dir->i_mtime,&de->time,&de->date);
de882fs/vfat/namei.cde->ctime_ms = 0;
de883fs/vfat/namei.cde->ctime = de->time;
de884fs/vfat/namei.cde->adate = de->cdate = de->date;
de885fs/vfat/namei.cde->start = 0;
de886fs/vfat/namei.cde->size = 0;
de887fs/vfat/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de888fs/vfat/namei.cde->lcase = CASE_LOWER_BASE | CASE_LOWER_EXT;
de986fs/vfat/namei.cstruct msdos_dir_entry *de;
de999fs/vfat/namei.cino = fat_get_entry(dir, &offset, &bh, &de);
de1039fs/vfat/namei.cstruct msdos_dir_entry *de,int ino,const char *name, int isdot)
de1051fs/vfat/namei.cmemcpy(de->name,name,MSDOS_NAME);
de1052fs/vfat/namei.cmemset(de->unused, 0, sizeof(de->unused));
de1053fs/vfat/namei.cde->lcase = 0;
de1054fs/vfat/namei.cde->attr = ATTR_DIR;
de1055fs/vfat/namei.cde->start = 0;
de1056fs/vfat/namei.cfat_date_unix2dos(dir->i_mtime,&de->time,&de->date);
de1057fs/vfat/namei.cde->ctime_ms = 0;
de1058fs/vfat/namei.cde->ctime = de->time;
de1059fs/vfat/namei.cde->adate = de->cdate = de->date;
de1060fs/vfat/namei.cde->size = 0;
de1088fs/vfat/namei.cstruct msdos_dir_entry *de;
de1097fs/vfat/namei.cif ((res = fat_get_entry(dir,&offset,&bh,&de)) < 0) return res;
de1100fs/vfat/namei.cres = vfat_create_a_dotdir(dir, parent, bh, de, res, MSDOS_DOT, 1);
de1108fs/vfat/namei.cif ((res = fat_get_entry(dir,&offset,&bh,&de)) < 0) {
de1114fs/vfat/namei.cres = vfat_create_a_dotdir(dir, parent, bh, de, res, MSDOS_DOTDOT, 0);
de1127fs/vfat/namei.cstruct msdos_dir_entry *de;
de1134fs/vfat/namei.cwhile (fat_get_entry(dir,&pos,&bh,&de) > -1) {
de1136fs/vfat/namei.cif (de->attr == ATTR_EXT) continue;
de1138fs/vfat/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de1139fs/vfat/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de1152fs/vfat/namei.cstruct msdos_dir_entry *de,int ino)
de1178fs/vfat/namei.cde->name[0] = DELETED_FLAG;
de1186fs/vfat/namei.cstruct msdos_dir_entry *de,int ino,int nospc)
de1201fs/vfat/namei.cde->name[0] = DELETED_FLAG;
de1209fs/vfat/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,
de1218fs/vfat/namei.cres = fat_get_entry(dir, &offset, bh, de);
de1221fs/vfat/namei.cres = vfat_rmdir_free_ino(dir,*bh,*de,res);
de1223fs/vfat/namei.cres = vfat_unlink_free_ino(dir,*bh,*de,res,nospc);
de1230fs/vfat/namei.cres = fat_get_entry(dir, &offset, bh, de);
de1235fs/vfat/namei.c(*de)->name[0] = DELETED_FLAG;
de1236fs/vfat/namei.c(*de)->attr = 0;
de1248fs/vfat/namei.cstruct msdos_dir_entry *de;
de1258fs/vfat/namei.cres = vfat_remove_entry(dir,&sinfo,&bh,&de,1,0);
de1291fs/vfat/namei.cstruct msdos_dir_entry *de;
de1299fs/vfat/namei.cres = vfat_remove_entry(dir,&sinfo,&bh,&de,0,nospc);
de73fs/xiafs/dir.cstruct xiafs_direct * de;
de87fs/xiafs/dir.cde = (struct xiafs_direct *) (bh->b_data + i);
de88fs/xiafs/dir.cif (!de->d_rec_len)
de90fs/xiafs/dir.ci += de->d_rec_len;
de93fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
de96fs/xiafs/dir.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de97fs/xiafs/dir.cde->d_rec_len < 12 || 
de98fs/xiafs/dir.c(char *)de+de->d_rec_len > XIAFS_ZSIZE(inode->i_sb)+bh->b_data ||
de99fs/xiafs/dir.cde->d_name_len < 1 || de->d_name_len + 8 > de->d_rec_len ||
de100fs/xiafs/dir.cde->d_name_len > _XIAFS_NAME_LEN ||
de101fs/xiafs/dir.cde->d_name[de->d_name_len] ) {
de106fs/xiafs/dir.cif (de->d_ino) {
de111fs/xiafs/dir.cif (filldir(dirent, de->d_name, de->d_name_len, filp->f_pos, de->d_ino) < 0) {
de116fs/xiafs/dir.coffset += de->d_rec_len;
de117fs/xiafs/dir.cfilp->f_pos += de->d_rec_len;
de118fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
de160fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de175fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)bh->b_data;
de177fs/xiafs/namei.cif (de->d_rec_len != 12 || !de->d_ino || de->d_name_len != 1 ||
de178fs/xiafs/namei.cstrcmp(de->d_name, ".")) {
de184fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)(bh->b_data+12);
de189fs/xiafs/namei.cde->d_ino=0;
de190fs/xiafs/namei.cde->d_name_len=0;
de191fs/xiafs/namei.cde->d_name[0]=0;
de192fs/xiafs/namei.cde->d_rec_len=XIAFS_ZSIZE(dir->i_sb);
de196fs/xiafs/namei.cif (de->d_ino > dir->i_sb->u.xiafs_sb.s_ninodes ||
de197fs/xiafs/namei.cde->d_rec_len < 12 || 
de198fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(dir->i_sb) ||
de199fs/xiafs/namei.cde->d_name_len + 8 > de->d_rec_len ||
de200fs/xiafs/namei.cde->d_name[de->d_name_len]) {
de205fs/xiafs/namei.cif (de->d_ino &&
de206fs/xiafs/namei.cRNDUP4(de->d_name_len)+RNDUP4(namelen)+16<=de->d_rec_len) {
de207fs/xiafs/namei.ci=RNDUP4(de->d_name_len)+8;
de208fs/xiafs/namei.cde_pre=de;
de209fs/xiafs/namei.cde=(struct xiafs_direct *)(i+(u_char *)de_pre);
de210fs/xiafs/namei.cde->d_ino=0;
de211fs/xiafs/namei.cde->d_rec_len=de_pre->d_rec_len-i;
de215fs/xiafs/namei.cif (!de->d_ino && RNDUP4(namelen)+8 <= de->d_rec_len) {
de222fs/xiafs/namei.cmemcpy(de->d_name, name, namelen);
de223fs/xiafs/namei.cde->d_name[namelen]=0;
de224fs/xiafs/namei.cde->d_name_len=namelen;
de226fs/xiafs/namei.c*res_dir = de;
de231fs/xiafs/namei.coffset+=de->d_rec_len;
de232fs/xiafs/namei.cde_pre=de;
de233fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de250fs/xiafs/namei.cstruct xiafs_direct * de;
de263fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de271fs/xiafs/namei.cde->d_ino = inode->i_ino;
de283fs/xiafs/namei.cstruct xiafs_direct * de;
de287fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de320fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de328fs/xiafs/namei.cde->d_ino = inode->i_ino;
de340fs/xiafs/namei.cstruct xiafs_direct * de;
de342fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de369fs/xiafs/namei.cde = (struct xiafs_direct *) dir_block->b_data;
de370fs/xiafs/namei.cde->d_ino=inode->i_ino;
de371fs/xiafs/namei.cstrcpy(de->d_name,".");
de372fs/xiafs/namei.cde->d_name_len=1;
de373fs/xiafs/namei.cde->d_rec_len=12;
de374fs/xiafs/namei.cde =(struct xiafs_direct *)(12 + dir_block->b_data);
de375fs/xiafs/namei.cde->d_ino = dir->i_ino;
de376fs/xiafs/namei.cstrcpy(de->d_name,"..");
de377fs/xiafs/namei.cde->d_name_len=2;
de378fs/xiafs/namei.cde->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12;
de386fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de393fs/xiafs/namei.cde->d_ino = inode->i_ino;
de410fs/xiafs/namei.cstruct xiafs_direct * de;
de425fs/xiafs/namei.cde=(struct xiafs_direct *)bh->b_data;
de426fs/xiafs/namei.cif (de->d_ino != inode->i_ino || strcmp(".", de->d_name) ||
de427fs/xiafs/namei.cde->d_rec_len != 12 ) {
de432fs/xiafs/namei.cde=(struct xiafs_direct *)(12 + bh->b_data);
de433fs/xiafs/namei.cif (!de->d_ino || strcmp("..", de->d_name)) {
de438fs/xiafs/namei.coffset=de->d_rec_len+12;
de445fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de446fs/xiafs/namei.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de447fs/xiafs/namei.cde->d_rec_len < 12 || 
de448fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) ||
de449fs/xiafs/namei.cde->d_name_len + 8 > de->d_rec_len ||
de450fs/xiafs/namei.cde->d_name[de->d_name_len]) {
de455fs/xiafs/namei.cif (de->d_ino) {
de459fs/xiafs/namei.coffset+=de->d_rec_len;
de466fs/xiafs/namei.cstatic void xiafs_rm_entry(struct xiafs_direct *de, struct xiafs_direct * de_pre)
de468fs/xiafs/namei.cif (de==de_pre) {
de469fs/xiafs/namei.cde->d_ino=0;
de472fs/xiafs/namei.cwhile (de_pre->d_rec_len+(u_char *)de_pre < (u_char *)de) {
de479fs/xiafs/namei.cif (de_pre->d_rec_len+(u_char *)de_pre > (u_char *)de) {
de483fs/xiafs/namei.cde_pre->d_rec_len+=de->d_rec_len;
de491fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de494fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de499fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de523fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de543fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de548fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de551fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de556fs/xiafs/namei.cif (de->d_ino != inode->i_ino) {
de571fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de588fs/xiafs/namei.cstruct xiafs_direct * de;
de594fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len, &de, NULL);
de621fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de629fs/xiafs/namei.cde->d_ino = inode->i_ino;
de640fs/xiafs/namei.cstruct xiafs_direct * de;
de653fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, NULL);
de660fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de666fs/xiafs/namei.cde->d_ino = oldinode->i_ino;
de183include/linux/msdos_fs.hstruct msdos_dir_entry **de);
de173include/linux/sysctl.hstruct proc_dir_entry *de;  /* /proc control block */
de386kernel/sysctl.cstruct proc_dir_entry *de;
de397kernel/sysctl.cde = kmalloc(sizeof(*de), GFP_KERNEL);
de398kernel/sysctl.cif (!de) continue;
de399kernel/sysctl.cde->namelen = strlen(table->procname);
de400kernel/sysctl.cde->name = table->procname;
de401kernel/sysctl.cde->mode = table->mode;
de402kernel/sysctl.cde->nlink = 1;
de403kernel/sysctl.cde->uid = 0;
de404kernel/sysctl.cde->gid = 0;
de405kernel/sysctl.cde->size = 0;
de406kernel/sysctl.cde->get_info = 0;  /* For internal use if we want it */
de407kernel/sysctl.cde->fill_inode = 0;  /* To override struct inode fields */
de408kernel/sysctl.cde->next = de->subdir = 0;
de409kernel/sysctl.cde->data = (void *) table;
de412kernel/sysctl.cde->ops = &proc_sys_inode_operations;
de413kernel/sysctl.cde->mode |= S_IFREG;
de417kernel/sysctl.cde->ops = &proc_dir_inode_operations;
de418kernel/sysctl.cde->nlink++;
de419kernel/sysctl.cde->mode |= S_IFDIR;
de421kernel/sysctl.ctable->de = de;
de422kernel/sysctl.cproc_register_dynamic(root, de);
de423kernel/sysctl.cif (de->mode & S_IFDIR )
de424kernel/sysctl.cregister_proc_table(table->child, de);
de430kernel/sysctl.cstruct proc_dir_entry *de;
de432kernel/sysctl.cif (!(de = table->de))
de434kernel/sysctl.cif (de->mode & S_IFDIR) {
de439kernel/sysctl.cunregister_proc_table(table->child, de);
de441kernel/sysctl.cproc_unregister(root, de->low_ino);
de442kernel/sysctl.ckfree(de);      
de451kernel/sysctl.cstruct proc_dir_entry *de;
de459kernel/sysctl.cde = (struct proc_dir_entry*) inode->u.generic_ip;
de460kernel/sysctl.cif (!de || !de->data)
de462kernel/sysctl.ctable = (struct ctl_table *) de->data;