taglinefilesource code
de54arch/alpha/kernel/osf_sys.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de54fs/dcache.c#define COPYDATA(de, newde) \
de55fs/dcache.cmemcpy((void *) &newde->dc_dev, (void *) &de->dc_dev, \
de77fs/dcache.cstatic inline void remove_lru(struct dir_cache_entry * de)
de79fs/dcache.cde->next_lru->prev_lru = de->prev_lru;
de80fs/dcache.cde->prev_lru->next_lru = de->next_lru;
de83fs/dcache.cstatic inline void add_lru(struct dir_cache_entry * de, struct dir_cache_entry *head)
de85fs/dcache.cde->next_lru = head;
de86fs/dcache.cde->prev_lru = head->prev_lru;
de87fs/dcache.cde->prev_lru->next_lru = de;
de88fs/dcache.chead->prev_lru = de;
de91fs/dcache.cstatic inline void update_lru(struct dir_cache_entry * de)
de93fs/dcache.cif (de == *de->lru_head)
de94fs/dcache.c*de->lru_head = de->next_lru;
de96fs/dcache.cremove_lru(de);
de97fs/dcache.cadd_lru(de,*de->lru_head);
de113fs/dcache.cstatic inline void remove_hash(struct dir_cache_entry * de)
de115fs/dcache.cif (de->h.next) {
de116fs/dcache.cde->h.next->h.prev = de->h.prev;
de117fs/dcache.cde->h.prev->h.next = de->h.next;
de118fs/dcache.cde->h.next = NULL;
de122fs/dcache.cstatic inline void add_hash(struct dir_cache_entry * de, struct hash_list * hash)
de124fs/dcache.cde->h.next = hash->next;
de125fs/dcache.cde->h.prev = (struct dir_cache_entry *) hash;
de126fs/dcache.chash->next->h.prev = de;
de127fs/dcache.chash->next = de;
de135fs/dcache.cstruct dir_cache_entry * de = hash->next;
de137fs/dcache.cfor (de = hash->next ; de != (struct dir_cache_entry *) hash ; de = de->h.next) {
de138fs/dcache.cif (de->dc_dev != dir->i_dev)
de140fs/dcache.cif (de->dir != dir->i_ino)
de142fs/dcache.cif (de->version != dir->i_version)
de144fs/dcache.cif (de->name_len != len)
de146fs/dcache.cif (memcmp(de->name, name, len))
de148fs/dcache.creturn de;
de159fs/dcache.cstruct dir_cache_entry * de;
de165fs/dcache.cde = level2_head;
de166fs/dcache.clevel2_head = de->next_lru;
de167fs/dcache.cremove_hash(de);
de168fs/dcache.cCOPYDATA(old_de, de);
de169fs/dcache.cadd_hash(de, hash);
de175fs/dcache.cstruct dir_cache_entry *de;
de180fs/dcache.cde = find_entry(dir, name, len, hash);
de181fs/dcache.cif (!de)
de183fs/dcache.c*ino = de->ino;
de184fs/dcache.cmove_to_level2(de, hash);
de191fs/dcache.cstruct dir_cache_entry *de;
de196fs/dcache.cif ((de = find_entry(dir, name, len, hash)) != NULL) {
de197fs/dcache.cde->ino = ino;
de198fs/dcache.cupdate_lru(de);
de201fs/dcache.cde = level1_head;
de202fs/dcache.clevel1_head = de->next_lru;
de203fs/dcache.cremove_hash(de);
de204fs/dcache.cde->dc_dev = dir->i_dev;
de205fs/dcache.cde->dir = dir->i_ino;
de206fs/dcache.cde->version = dir->i_version;
de207fs/dcache.cde->ino = ino;
de208fs/dcache.cde->name_len = len;
de209fs/dcache.cmemcpy(de->name, name, len);
de210fs/dcache.cadd_hash(de, hash);
de71fs/ext/dir.cstruct ext_dir_entry * de;
de86fs/ext/dir.cde = (struct ext_dir_entry *) (bh->b_data + i);
de87fs/ext/dir.cif (!de->rec_len)
de89fs/ext/dir.ci += de->rec_len;
de92fs/ext/dir.cde = (struct ext_dir_entry *) (offset + bh->b_data);
de94fs/ext/dir.cif (de->rec_len < 8 || de->rec_len % 8 != 0 ||
de95fs/ext/dir.cde->rec_len < de->name_len + 8 ||
de96fs/ext/dir.c(de->rec_len + (off_t) filp->f_pos - 1) / 1024 > ((off_t) filp->f_pos / 1024)) {
de101fs/ext/dir.coffset, de->rec_len, de->name_len);
de107fs/ext/dir.cif (de->inode) {
de108fs/ext/dir.cerror = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode);
de112fs/ext/dir.coffset += de->rec_len;
de113fs/ext/dir.cfilp->f_pos += de->rec_len;
de114fs/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;
de73fs/ext2/dir.cstruct ext2_dir_entry * de, struct buffer_head * bh,
de78fs/ext2/dir.cif (de->rec_len < EXT2_DIR_REC_LEN(1))
de80fs/ext2/dir.celse if (de->rec_len % 4 != 0)
de82fs/ext2/dir.celse if (de->rec_len < EXT2_DIR_REC_LEN(de->name_len))
de84fs/ext2/dir.celse if (dir && ((char *) de - bh->b_data) + de->rec_len >
de87fs/ext2/dir.celse if (dir && de->inode > dir->i_sb->u.ext2_sb.s_es->s_inodes_count)
de93fs/ext2/dir.cdir->i_ino, error_msg, offset, (unsigned long) de->inode,
de94fs/ext2/dir.cde->rec_len, de->name_len);
de105fs/ext2/dir.cstruct ext2_dir_entry * de;
de154fs/ext2/dir.cde = (struct ext2_dir_entry *) 
de162fs/ext2/dir.cif (de->rec_len < EXT2_DIR_REC_LEN(1))
de164fs/ext2/dir.ci += de->rec_len;
de174fs/ext2/dir.cde = (struct ext2_dir_entry *) (bh->b_data + offset);
de175fs/ext2/dir.cif (!ext2_check_dir_entry ("ext2_readdir", inode, de,
de184fs/ext2/dir.coffset += de->rec_len;
de185fs/ext2/dir.cif (de->inode) {
de193fs/ext2/dir.cdcache_add(inode, de->name, de->name_len, de->inode);
de195fs/ext2/dir.cerror = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode);
de202fs/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)))
de627fs/ext2/namei.cif (de->inode != inode->i_ino) {
de647fs/ext2/namei.celse if (de->inode != inode->i_ino)
de660fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de693fs/ext2/namei.cstruct ext2_dir_entry * de;
de700fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de703fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de710fs/ext2/namei.cif (de->inode != inode->i_ino) {
de727fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de752fs/ext2/namei.cstruct ext2_dir_entry * de;
de798fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de807fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de815fs/ext2/namei.cde->inode = inode->i_ino;
de817fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de832fs/ext2/namei.cstruct ext2_dir_entry * de;
de851fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de858fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de864fs/ext2/namei.cde->inode = oldinode->i_ino;
de866fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
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;
de342fs/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);
de787fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de793fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de798fs/hpfs/hpfs_fs.cfor (; de < de_end; de = de_next_de(de)) {
de799fs/hpfs/hpfs_fs.cif (de->down)
de800fs/hpfs/hpfs_fs.ccount_dnodes(inode, de_down_pointer(de),
de802fs/hpfs/hpfs_fs.cif (de->directory && !de->first)
de804fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1120fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1138fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh);
de1140fs/hpfs/hpfs_fs.cde = map_dirent(dir,
de1144fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh);
de1150fs/hpfs/hpfs_fs.cif (!de)
de1157fs/hpfs/hpfs_fs.cif (de->directory)
de1158fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1160fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1175fs/hpfs/hpfs_fs.cinode->i_atime = local_to_gmt(de->read_date);
de1176fs/hpfs/hpfs_fs.cinode->i_mtime = local_to_gmt(de->write_date);
de1177fs/hpfs/hpfs_fs.cinode->i_ctime = local_to_gmt(de->creation_date);
de1178fs/hpfs/hpfs_fs.cif (de->read_only)
de1180fs/hpfs/hpfs_fs.cif (!de->directory) {
de1181fs/hpfs/hpfs_fs.cinode->i_size = de->file_size;
de1243fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1257fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1263fs/hpfs/hpfs_fs.cfor ( ; de < de_end; de = de_next_de(de)) {
de1268fs/hpfs/hpfs_fs.cl = len < de->namelen ? len : de->namelen;
de1269fs/hpfs/hpfs_fs.ct = memcasecmp(name, de->name, l);
de1275fs/hpfs/hpfs_fs.ct = len - de->namelen;
de1278fs/hpfs/hpfs_fs.creturn de;
de1288fs/hpfs/hpfs_fs.cif (de->down) {
de1289fs/hpfs/hpfs_fs.cdnode_secno sub_dno = de_down_pointer(de);
de1304fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1368fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1403fs/hpfs/hpfs_fs.cde = map_pos_dirent(inode, &filp->f_pos, &qbh);
de1404fs/hpfs/hpfs_fs.cif (!de) {
de1408fs/hpfs/hpfs_fs.cnamelen = de->namelen;
de1409fs/hpfs/hpfs_fs.ctranslate_hpfs_name(de->name, namelen, tempname, lc);
de1410fs/hpfs/hpfs_fs.cif (de->directory)
de1411fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1413fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1435fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1458fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, qbh);
de1464fs/hpfs/hpfs_fs.cif (!de) {
de1475fs/hpfs/hpfs_fs.cif (de->down)
de1484fs/hpfs/hpfs_fs.cif (de->first || de->last) {
de1489fs/hpfs/hpfs_fs.creturn de;
de1498fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1534fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, &qbh);
de1535fs/hpfs/hpfs_fs.cif (!de || !de->down)
de1541fs/hpfs/hpfs_fs.cdno = de_down_pointer(de);
de1562fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de, *de_end;
de1565fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1568fs/hpfs/hpfs_fs.cfor (i = 1; de < de_end; i++, de = de_next_de(de)) {
de1570fs/hpfs/hpfs_fs.creturn de;
de1571fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de66fs/isofs/dir.cstatic int parent_inode_number(struct inode * inode, struct iso_directory_record * de)
de77fs/isofs/dir.creturn isofs_lookup_grandparent(inode, find_rock_ridge_relocation(de, inode));
de123fs/isofs/dir.cstruct iso_directory_record *de;
de153fs/isofs/dir.cde = (struct iso_directory_record *) (bh->b_data + offset);
de156fs/isofs/dir.cde_len = *(unsigned char *) de;
de182fs/isofs/dir.cmemcpy(tmpde, de, bufsize - offset);
de191fs/isofs/dir.cde = tmpde;
de196fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 0) {
de204fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 1) {
de205fs/isofs/dir.cinode_number = parent_inode_number(inode, de);
de220fs/isofs/dir.cif (de->flags[-high_sierra] & 5) {
de227fs/isofs/dir.clen = de->name_len[0];
de228fs/isofs/dir.cname = de->name;
de229fs/isofs/dir.crrflag = get_rock_ridge_filename(de, &name, &len, inode);
de648fs/isofs/inode.cstruct iso_directory_record * de;
de655fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de656fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de662fs/isofs/inode.coffset += *((unsigned char *) de);
de672fs/isofs/inode.cif (de->name_len[0] == 1 && de->name[0] == 1) 
de674fs/isofs/inode.cparent_dir = find_rock_ridge_relocation(de, parent);
de675fs/isofs/inode.cdirectory_size = isonum_733 (de->size);
de694fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de701fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de721fs/isofs/inode.coffset += *((unsigned char *) de);
de727fs/isofs/inode.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de730fs/isofs/inode.cde = (struct iso_directory_record *) ((char *)cpnt);
de743fs/isofs/inode.cif (find_rock_ridge_relocation(de, parent) == extent){
de49fs/isofs/namei.cif (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen);
de77fs/isofs/namei.cstruct iso_directory_record * de;
de93fs/isofs/namei.cde = (struct iso_directory_record *) (bh->b_data + offset);
de100fs/isofs/namei.cif (*((unsigned char *) de) == 0) {
de112fs/isofs/namei.coffset += *((unsigned char *) de);
de113fs/isofs/namei.cf_pos += *((unsigned char *) de);
de120fs/isofs/namei.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de124fs/isofs/namei.cde = (struct iso_directory_record *) cpnt;
de137fs/isofs/namei.cif (de->name[0]==0 && de->name_len[0]==1) {
de144fs/isofs/namei.cif (de->name[0]==1 && de->name_len[0]==1) {
de157fs/isofs/namei.cdlen = de->name_len[0];
de158fs/isofs/namei.cdpnt = de->name;
de160fs/isofs/namei.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir);
de173fs/isofs/namei.cde->name[i] = c;
de185fs/isofs/namei.cif(   !(de->flags[-dir->i_sb->u.isofs_sb.s_high_sierra] & 5)
de203fs/isofs/namei.cfind_rock_ridge_relocation(de,dir));
de100fs/isofs/rock.cint find_rock_ridge_relocation(struct iso_directory_record * de, 
de112fs/isofs/rock.cif (de->name[0]==1 && de->name_len[0]==1) flag = 1;
de114fs/isofs/rock.cretval = isonum_733 (de->extent);
de118fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de173fs/isofs/rock.cint get_rock_ridge_filename(struct iso_directory_record * de,
de184fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de257fs/isofs/rock.cint parse_rock_ridge_inode(struct iso_directory_record * de,
de265fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de67fs/minix/dir.cstruct minix_dir_entry * de;
de83fs/minix/dir.cde = (struct minix_dir_entry *) (offset + bh->b_data);
de84fs/minix/dir.cif (de->inode) {
de85fs/minix/dir.cint size = strnlen(de->name, info->s_namelen);
de86fs/minix/dir.cif (filldir(dirent, de->name, size, filp->f_pos, de->inode) < 0) {
de48fs/minix/namei.cstruct minix_dir_entry * de;
de50fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + *offset);
de52fs/minix/namei.cif (!de->inode || len > info->s_namelen)
de55fs/minix/namei.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de57fs/minix/namei.creturn namecompare(len,info->s_namelen,name,de->name);
de115fs/minix/namei.cstruct minix_dir_entry * de;
de125fs/minix/namei.cif (!(bh = minix_find_entry(dir,name,len,&de))) {
de129fs/minix/namei.cino = de->inode;
de157fs/minix/namei.cstruct minix_dir_entry * de;
de182fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
de185fs/minix/namei.cde->inode = 0;
de189fs/minix/namei.cif (de->inode) {
de190fs/minix/namei.cif (namecompare(namelen, info->s_namelen, name, de->name)) {
de198fs/minix/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de201fs/minix/namei.c*res_dir = de;
de221fs/minix/namei.cstruct minix_dir_entry * de;
de234fs/minix/namei.cerror = minix_add_entry(dir,name,len, &bh ,&de);
de242fs/minix/namei.cde->inode = inode->i_ino;
de255fs/minix/namei.cstruct minix_dir_entry * de;
de259fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de291fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de299fs/minix/namei.cde->inode = inode->i_ino;
de312fs/minix/namei.cstruct minix_dir_entry * de;
de320fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de345fs/minix/namei.cde = (struct minix_dir_entry *) dir_block->b_data;
de346fs/minix/namei.cde->inode=inode->i_ino;
de347fs/minix/namei.cstrcpy(de->name,".");
de348fs/minix/namei.cde = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize);
de349fs/minix/namei.cde->inode = dir->i_ino;
de350fs/minix/namei.cstrcpy(de->name,"..");
de358fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de365fs/minix/namei.cde->inode = inode->i_ino;
de382fs/minix/namei.cstruct minix_dir_entry * de;
de398fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
de399fs/minix/namei.cif (!de->inode || strcmp(de->name,"."))
de401fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize);
de402fs/minix/namei.cif (!de->inode || strcmp(de->name,".."))
de412fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
de414fs/minix/namei.cif (de->inode) {
de439fs/minix/namei.cstruct minix_dir_entry * de;
de442fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de447fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de465fs/minix/namei.cif (de->inode != inode->i_ino) {
de475fs/minix/namei.cde->inode = 0;
de496fs/minix/namei.cstruct minix_dir_entry * de;
de501fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de504fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de509fs/minix/namei.cif (de->inode != inode->i_ino) {
de520fs/minix/namei.cif (de->inode != inode->i_ino) {
de530fs/minix/namei.cde->inode = 0;
de548fs/minix/namei.cstruct minix_dir_entry * de;
de576fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de585fs/minix/namei.ci = minix_add_entry(dir, name, len, &bh, &de);
de593fs/minix/namei.cde->inode = inode->i_ino;
de604fs/minix/namei.cstruct minix_dir_entry * de;
de617fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de624fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de630fs/minix/namei.cde->inode = oldinode->i_ino;
de72fs/msdos/dir.cstruct msdos_dir_entry *de;
de91fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
de92fs/msdos/dir.cif (!IS_FREE(de->name)
de93fs/msdos/dir.c&& !(de->attr & (ATTR_VOLUME|ATTR_SYS|ATTR_HIDDEN))) {
de97fs/msdos/dir.cif (!(c = de->name[i])) break;
de107fs/msdos/dir.cif (!(c = de->ext[i2])) break;
de115fs/msdos/dir.cif (!strcmp(de->name,MSDOS_DOT))
de117fs/msdos/dir.celse if (!strcmp(de->name,MSDOS_DOTDOT))
de288fs/msdos/misc.cstruct msdos_dir_entry **de)
de310fs/msdos/misc.c*de = (struct msdos_dir_entry *) ((*bh)->b_data+(offset &
de103fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
de111fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino);
de120fs/msdos/namei.cstruct msdos_dir_entry *de;
de145fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
de187fs/msdos/namei.cstruct msdos_dir_entry *de;
de190fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) {
de194fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res;
de201fs/msdos/namei.cmemcpy(de->name,name,MSDOS_NAME);
de202fs/msdos/namei.cmemset(de->unused, 0, sizeof(de->unused));
de203fs/msdos/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de204fs/msdos/namei.cde->start = 0;
de205fs/msdos/namei.cdate_unix2dos(dir->i_mtime,&de->time,&de->date);
de206fs/msdos/namei.cde->size = 0;
de224fs/msdos/namei.cstruct msdos_dir_entry *de;
de235fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de272fs/msdos/namei.cstruct msdos_dir_entry *de;
de283fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de331fs/msdos/namei.cstruct msdos_dir_entry *de;
de338fs/msdos/namei.cwhile (msdos_get_entry(dir,&pos,&bh,&de) > -1)
de339fs/msdos/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de340fs/msdos/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de357fs/msdos/namei.cstruct msdos_dir_entry *de;
de365fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
de380fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de400fs/msdos/namei.cstruct msdos_dir_entry *de;
de405fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
de419fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de75fs/proc/inode.cstruct inode * proc_get_inode(struct super_block * s, int ino, struct proc_dir_entry * de)
de79fs/proc/inode.cinode->u.generic_ip = (void *) de;
de80fs/proc/inode.cif (de) {
de81fs/proc/inode.cif (de->mode) {
de82fs/proc/inode.cinode->i_mode = de->mode;
de83fs/proc/inode.cinode->i_uid = de->uid;
de84fs/proc/inode.cinode->i_gid = de->gid;
de86fs/proc/inode.cif (de->size)
de87fs/proc/inode.cinode->i_size = de->size;
de88fs/proc/inode.cif (de->ops)
de89fs/proc/inode.cinode->i_op = de->ops;
de90fs/proc/inode.cif (de->nlink)
de91fs/proc/inode.cinode->i_nlink = de->nlink;
de92fs/proc/inode.cif (de->fill_inode)
de93fs/proc/inode.cde->fill_inode(inode);
de306fs/proc/root.cint proc_match(int len,const char * name,struct proc_dir_entry * de)
de308fs/proc/root.cif (!de || !de->low_ino)
de311fs/proc/root.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de313fs/proc/root.cif (de->namelen != len)
de315fs/proc/root.creturn !memcmp(name, de->name, len);
de321fs/proc/root.cstruct proc_dir_entry * de;
de330fs/proc/root.cde = (struct proc_dir_entry *) dir->u.generic_ip;
de331fs/proc/root.cif (!de) {
de345fs/proc/root.cinode = proc_get_inode(dir->i_sb, de->parent->low_ino, de->parent);
de355fs/proc/root.cfor (de = de->subdir; de ; de = de->next) {
de356fs/proc/root.cif (proc_match(len, name, de))
de359fs/proc/root.cif (!de) {
de364fs/proc/root.cino = de->low_ino | (dir->i_ino & ~(0xffff));
de366fs/proc/root.cif (!(*result = proc_get_inode(dir->i_sb, ino, de))) {
de430fs/proc/root.cstruct proc_dir_entry * de;
de437fs/proc/root.cde = (struct proc_dir_entry *) inode->u.generic_ip;
de438fs/proc/root.cif (!de)
de449fs/proc/root.cif (filldir(dirent, "..", 2, i, de->parent->low_ino) < 0)
de456fs/proc/root.cde = de->subdir;
de459fs/proc/root.cif (!de)
de463fs/proc/root.cde = de->next;
de468fs/proc/root.cif (filldir(dirent, de->name, de->namelen, filp->f_pos, ino | de->low_ino) < 0)
de471fs/proc/root.cde = de->next;
de472fs/proc/root.c} while (de);
de24fs/readdir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de24fs/smbfs/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de76fs/sysv/dir.cstruct sysv_dir_entry * de, sde;
de91fs/sysv/dir.cde = (struct sysv_dir_entry *) (offset + bh_data);
de92fs/sysv/dir.cif (de->inode) {
de96fs/sysv/dir.cmemcpy(&sde, de, sizeof(struct sysv_dir_entry));
de46fs/sysv/namei.cstatic int sysv_match(int len, const char * name, struct sysv_dir_entry * de)
de48fs/sysv/namei.cif (!de->inode || len > SYSV_NAMELEN)
de51fs/sysv/namei.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de53fs/sysv/namei.creturn namecompare(len,SYSV_NAMELEN,name,de->name);
de111fs/sysv/namei.cstruct sysv_dir_entry * de;
de121fs/sysv/namei.cif (!(bh = sysv_find_entry(dir,name,len,&de))) {
de125fs/sysv/namei.cino = de->inode;
de154fs/sysv/namei.cstruct sysv_dir_entry * de;
de176fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + offset);
de180fs/sysv/namei.cde->inode = 0;
de184fs/sysv/namei.cif (de->inode) {
de185fs/sysv/namei.cif (namecompare(namelen, SYSV_NAMELEN, name, de->name)) {
de193fs/sysv/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de195fs/sysv/namei.c*res_dir = de;
de214fs/sysv/namei.cstruct sysv_dir_entry * de;
de227fs/sysv/namei.cerror = sysv_add_entry(dir,name,len, &bh ,&de);
de235fs/sysv/namei.cde->inode = inode->i_ino;
de248fs/sysv/namei.cstruct sysv_dir_entry * de;
de252fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de284fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de292fs/sysv/namei.cde->inode = inode->i_ino;
de305fs/sysv/namei.cstruct sysv_dir_entry * de;
de311fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de336fs/sysv/namei.cde = (struct sysv_dir_entry *) (dir_block->b_data + 0*SYSV_DIRSIZE);
de337fs/sysv/namei.cde->inode = inode->i_ino;
de338fs/sysv/namei.cstrcpy(de->name,"."); /* rest of de->name is zero, see sysv_new_block */
de339fs/sysv/namei.cde = (struct sysv_dir_entry *) (dir_block->b_data + 1*SYSV_DIRSIZE);
de340fs/sysv/namei.cde->inode = dir->i_ino;
de341fs/sysv/namei.cstrcpy(de->name,".."); /* rest of de->name is zero, see sysv_new_block */
de349fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de356fs/sysv/namei.cde->inode = inode->i_ino;
de374fs/sysv/namei.cstruct sysv_dir_entry * de;
de388fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + 0*SYSV_DIRSIZE);
de389fs/sysv/namei.cif (!de->inode || strcmp(de->name,"."))
de391fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + 1*SYSV_DIRSIZE);
de392fs/sysv/namei.cif (!de->inode || strcmp(de->name,".."))
de404fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + offset);
de407fs/sysv/namei.cif (de->inode) {
de431fs/sysv/namei.cstruct sysv_dir_entry * de;
de434fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de439fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de457fs/sysv/namei.cif (de->inode != inode->i_ino) {
de467fs/sysv/namei.cde->inode = 0;
de487fs/sysv/namei.cstruct sysv_dir_entry * de;
de492fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de495fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de500fs/sysv/namei.cif (de->inode != inode->i_ino) {
de511fs/sysv/namei.cif (de->inode != inode->i_ino) {
de521fs/sysv/namei.cde->inode = 0;
de538fs/sysv/namei.cstruct sysv_dir_entry * de;
de571fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de580fs/sysv/namei.ci = sysv_add_entry(dir, name, len, &bh, &de);
de588fs/sysv/namei.cde->inode = inode->i_ino;
de599fs/sysv/namei.cstruct sysv_dir_entry * de;
de612fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de619fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de625fs/sysv/namei.cde->inode = oldinode->i_ino;
de74fs/xiafs/dir.cstruct xiafs_direct * de;
de88fs/xiafs/dir.cde = (struct xiafs_direct *) (bh->b_data + i);
de89fs/xiafs/dir.cif (!de->d_rec_len)
de91fs/xiafs/dir.ci += de->d_rec_len;
de94fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
de97fs/xiafs/dir.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de98fs/xiafs/dir.cde->d_rec_len < 12 || 
de99fs/xiafs/dir.c(char *)de+de->d_rec_len > XIAFS_ZSIZE(inode->i_sb)+bh->b_data ||
de100fs/xiafs/dir.cde->d_name_len < 1 || de->d_name_len + 8 > de->d_rec_len ||
de101fs/xiafs/dir.cde->d_name_len > _XIAFS_NAME_LEN ||
de102fs/xiafs/dir.cde->d_name[de->d_name_len] ) {
de107fs/xiafs/dir.cif (de->d_ino) {
de112fs/xiafs/dir.cif (filldir(dirent, de->d_name, de->d_name_len, filp->f_pos, de->d_ino) < 0) {
de117fs/xiafs/dir.coffset += de->d_rec_len;
de118fs/xiafs/dir.cfilp->f_pos += de->d_rec_len;
de119fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
de163fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de178fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)bh->b_data;
de180fs/xiafs/namei.cif (de->d_rec_len != 12 || !de->d_ino || de->d_name_len != 1 ||
de181fs/xiafs/namei.cstrcmp(de->d_name, ".")) {
de187fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)(bh->b_data+12);
de192fs/xiafs/namei.cde->d_ino=0;
de193fs/xiafs/namei.cde->d_name_len=0;
de194fs/xiafs/namei.cde->d_name[0]=0;
de195fs/xiafs/namei.cde->d_rec_len=XIAFS_ZSIZE(dir->i_sb);
de199fs/xiafs/namei.cif (de->d_ino > dir->i_sb->u.xiafs_sb.s_ninodes ||
de200fs/xiafs/namei.cde->d_rec_len < 12 || 
de201fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(dir->i_sb) ||
de202fs/xiafs/namei.cde->d_name_len + 8 > de->d_rec_len ||
de203fs/xiafs/namei.cde->d_name[de->d_name_len]) {
de208fs/xiafs/namei.cif (de->d_ino &&
de209fs/xiafs/namei.cRNDUP4(de->d_name_len)+RNDUP4(namelen)+16<=de->d_rec_len) {
de210fs/xiafs/namei.ci=RNDUP4(de->d_name_len)+8;
de211fs/xiafs/namei.cde_pre=de;
de212fs/xiafs/namei.cde=(struct xiafs_direct *)(i+(u_char *)de_pre);
de213fs/xiafs/namei.cde->d_ino=0;
de214fs/xiafs/namei.cde->d_rec_len=de_pre->d_rec_len-i;
de218fs/xiafs/namei.cif (!de->d_ino && RNDUP4(namelen)+8 <= de->d_rec_len) {
de225fs/xiafs/namei.cmemcpy(de->d_name, name, namelen);
de226fs/xiafs/namei.cde->d_name[namelen]=0;
de227fs/xiafs/namei.cde->d_name_len=namelen;
de229fs/xiafs/namei.c*res_dir = de;
de234fs/xiafs/namei.coffset+=de->d_rec_len;
de235fs/xiafs/namei.cde_pre=de;
de236fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de253fs/xiafs/namei.cstruct xiafs_direct * de;
de266fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de274fs/xiafs/namei.cde->d_ino = inode->i_ino;
de286fs/xiafs/namei.cstruct xiafs_direct * de;
de290fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de323fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de331fs/xiafs/namei.cde->d_ino = inode->i_ino;
de343fs/xiafs/namei.cstruct xiafs_direct * de;
de345fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de372fs/xiafs/namei.cde = (struct xiafs_direct *) dir_block->b_data;
de373fs/xiafs/namei.cde->d_ino=inode->i_ino;
de374fs/xiafs/namei.cstrcpy(de->d_name,".");
de375fs/xiafs/namei.cde->d_name_len=1;
de376fs/xiafs/namei.cde->d_rec_len=12;
de377fs/xiafs/namei.cde =(struct xiafs_direct *)(12 + dir_block->b_data);
de378fs/xiafs/namei.cde->d_ino = dir->i_ino;
de379fs/xiafs/namei.cstrcpy(de->d_name,"..");
de380fs/xiafs/namei.cde->d_name_len=2;
de381fs/xiafs/namei.cde->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12;
de389fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de396fs/xiafs/namei.cde->d_ino = inode->i_ino;
de413fs/xiafs/namei.cstruct xiafs_direct * de;
de428fs/xiafs/namei.cde=(struct xiafs_direct *)bh->b_data;
de429fs/xiafs/namei.cif (de->d_ino != inode->i_ino || strcmp(".", de->d_name) ||
de430fs/xiafs/namei.cde->d_rec_len != 12 ) {
de435fs/xiafs/namei.cde=(struct xiafs_direct *)(12 + bh->b_data);
de436fs/xiafs/namei.cif (!de->d_ino || strcmp("..", de->d_name)) {
de441fs/xiafs/namei.coffset=de->d_rec_len+12;
de448fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de449fs/xiafs/namei.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de450fs/xiafs/namei.cde->d_rec_len < 12 || 
de451fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) ||
de452fs/xiafs/namei.cde->d_name_len + 8 > de->d_rec_len ||
de453fs/xiafs/namei.cde->d_name[de->d_name_len]) {
de458fs/xiafs/namei.cif (de->d_ino) {
de462fs/xiafs/namei.coffset+=de->d_rec_len;
de469fs/xiafs/namei.cstatic void xiafs_rm_entry(struct xiafs_direct *de, struct xiafs_direct * de_pre)
de471fs/xiafs/namei.cif (de==de_pre) {
de472fs/xiafs/namei.cde->d_ino=0;
de475fs/xiafs/namei.cwhile (de_pre->d_rec_len+(u_char *)de_pre < (u_char *)de) {
de482fs/xiafs/namei.cif (de_pre->d_rec_len+(u_char *)de_pre > (u_char *)de) {
de486fs/xiafs/namei.cde_pre->d_rec_len+=de->d_rec_len;
de494fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de497fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de502fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de526fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de546fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de551fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de554fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de559fs/xiafs/namei.cif (de->d_ino != inode->i_ino) {
de574fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de591fs/xiafs/namei.cstruct xiafs_direct * de;
de597fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len, &de, NULL);
de624fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de632fs/xiafs/namei.cde->d_ino = inode->i_ino;
de643fs/xiafs/namei.cstruct xiafs_direct * de;
de656fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, NULL);
de663fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de669fs/xiafs/namei.cde->d_ino = oldinode->i_ino;
de128include/linux/msdos_fs.hstruct msdos_dir_entry **de);