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;
de336fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de499fs/hpfs/hpfs_fs.cde = map_dirent(s->s_mounted, root_dno, "\001\001", 2, &qbh);
de500fs/hpfs/hpfs_fs.cif (!root_dno || !de) {
de508fs/hpfs/hpfs_fs.cs->s_mounted->i_atime = local_to_gmt(de->read_date);
de509fs/hpfs/hpfs_fs.cs->s_mounted->i_mtime = local_to_gmt(de->write_date);
de510fs/hpfs/hpfs_fs.cs->s_mounted->i_ctime = local_to_gmt(de->creation_date);
de781fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de787fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de792fs/hpfs/hpfs_fs.cfor (; de < de_end; de = de_next_de(de)) {
de793fs/hpfs/hpfs_fs.cif (de->down)
de794fs/hpfs/hpfs_fs.ccount_dnodes(inode, de_down_pointer(de),
de796fs/hpfs/hpfs_fs.cif (de->directory && !de->first)
de798fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1114fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1132fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh);
de1134fs/hpfs/hpfs_fs.cde = map_dirent(dir,
de1138fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh);
de1144fs/hpfs/hpfs_fs.cif (!de)
de1151fs/hpfs/hpfs_fs.cif (de->directory)
de1152fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1154fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1169fs/hpfs/hpfs_fs.cinode->i_atime = local_to_gmt(de->read_date);
de1170fs/hpfs/hpfs_fs.cinode->i_mtime = local_to_gmt(de->write_date);
de1171fs/hpfs/hpfs_fs.cinode->i_ctime = local_to_gmt(de->creation_date);
de1172fs/hpfs/hpfs_fs.cif (de->read_only)
de1174fs/hpfs/hpfs_fs.cif (!de->directory) {
de1175fs/hpfs/hpfs_fs.cinode->i_size = de->file_size;
de1237fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1251fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1257fs/hpfs/hpfs_fs.cfor ( ; de < de_end; de = de_next_de(de)) {
de1262fs/hpfs/hpfs_fs.cl = len < de->namelen ? len : de->namelen;
de1263fs/hpfs/hpfs_fs.ct = memcasecmp(name, de->name, l);
de1269fs/hpfs/hpfs_fs.ct = len - de->namelen;
de1272fs/hpfs/hpfs_fs.creturn de;
de1282fs/hpfs/hpfs_fs.cif (de->down) {
de1283fs/hpfs/hpfs_fs.cdnode_secno sub_dno = de_down_pointer(de);
de1298fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1362fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1397fs/hpfs/hpfs_fs.cde = map_pos_dirent(inode, &filp->f_pos, &qbh);
de1398fs/hpfs/hpfs_fs.cif (!de) {
de1402fs/hpfs/hpfs_fs.cnamelen = de->namelen;
de1403fs/hpfs/hpfs_fs.ctranslate_hpfs_name(de->name, namelen, tempname, lc);
de1404fs/hpfs/hpfs_fs.cif (de->directory)
de1405fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1407fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1429fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1452fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, qbh);
de1458fs/hpfs/hpfs_fs.cif (!de) {
de1469fs/hpfs/hpfs_fs.cif (de->down)
de1478fs/hpfs/hpfs_fs.cif (de->first || de->last) {
de1483fs/hpfs/hpfs_fs.creturn de;
de1492fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1528fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, &qbh);
de1529fs/hpfs/hpfs_fs.cif (!de || !de->down)
de1535fs/hpfs/hpfs_fs.cdno = de_down_pointer(de);
de1556fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de, *de_end;
de1559fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1562fs/hpfs/hpfs_fs.cfor (i = 1; de < de_end; i++, de = de_next_de(de)) {
de1564fs/hpfs/hpfs_fs.creturn de;
de1565fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de61fs/isofs/dir.cstatic int parent_inode_number(struct inode * inode, struct iso_directory_record * de)
de72fs/isofs/dir.creturn isofs_lookup_grandparent(inode, find_rock_ridge_relocation(de, inode));
de118fs/isofs/dir.cstruct iso_directory_record *de;
de148fs/isofs/dir.cde = (struct iso_directory_record *) (bh->b_data + offset);
de151fs/isofs/dir.cde_len = *(unsigned char *) de;
de177fs/isofs/dir.cmemcpy(tmpde, de, bufsize - offset);
de186fs/isofs/dir.cde = tmpde;
de191fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 0) {
de199fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 1) {
de200fs/isofs/dir.cinode_number = parent_inode_number(inode, de);
de215fs/isofs/dir.cif (de->flags[-high_sierra] & 5) {
de222fs/isofs/dir.clen = de->name_len[0];
de223fs/isofs/dir.cname = de->name;
de224fs/isofs/dir.crrflag = get_rock_ridge_filename(de, &name, &len, inode);
de642fs/isofs/inode.cstruct iso_directory_record * de;
de649fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de650fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de656fs/isofs/inode.coffset += *((unsigned char *) de);
de666fs/isofs/inode.cif (de->name_len[0] == 1 && de->name[0] == 1) 
de668fs/isofs/inode.cparent_dir = find_rock_ridge_relocation(de, parent);
de669fs/isofs/inode.cdirectory_size = isonum_733 (de->size);
de688fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de695fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de715fs/isofs/inode.coffset += *((unsigned char *) de);
de721fs/isofs/inode.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de724fs/isofs/inode.cde = (struct iso_directory_record *) ((char *)cpnt);
de737fs/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);
de63fs/minix/dir.cstruct minix_dir_entry * de;
de79fs/minix/dir.cde = (struct minix_dir_entry *) (offset + bh->b_data);
de80fs/minix/dir.cif (de->inode) {
de81fs/minix/dir.cint size = strnlen(de->name, info->s_namelen);
de82fs/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;
de69fs/msdos/dir.cstruct msdos_dir_entry *de;
de88fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
de89fs/msdos/dir.cif (!IS_FREE(de->name) && !(de->attr & ATTR_VOLUME)) {
de93fs/msdos/dir.cif ((de->attr & ATTR_HIDDEN) && MSDOS_SB(sb)->dotsOK) {
de99fs/msdos/dir.cif (!(c = de->name[i])) break;
de111fs/msdos/dir.cif (!(c = de->ext[i2])) break;
de119fs/msdos/dir.cif (!strcmp(de->name,MSDOS_DOT))
de121fs/msdos/dir.celse if (!strcmp(de->name,MSDOS_DOTDOT))
de284fs/msdos/misc.cstruct msdos_dir_entry **de)
de306fs/msdos/misc.c*de = (struct msdos_dir_entry *) ((*bh)->b_data+(offset &
de111fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
de133fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino,scantype);
de142fs/msdos/namei.cstruct msdos_dir_entry *de;
de167fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
de208fs/msdos/namei.cstruct msdos_dir_entry *de;
de211fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino,SCAN_ANY)) < 0) {
de215fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino,SCAN_ANY)) < 0) return res;
de222fs/msdos/namei.cmemcpy(de->name,name,MSDOS_NAME);
de223fs/msdos/namei.cmemset(de->unused, 0, sizeof(de->unused));
de224fs/msdos/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de225fs/msdos/namei.cde->attr = is_hid ? (de->attr|ATTR_HIDDEN) : (de->attr&~ATTR_HIDDEN);
de226fs/msdos/namei.cde->start = 0;
de227fs/msdos/namei.cdate_unix2dos(dir->i_mtime,&de->time,&de->date);
de228fs/msdos/namei.cde->size = 0;
de246fs/msdos/namei.cstruct msdos_dir_entry *de;
de262fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino,SCAN_HID) >= 0) {
de268fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino,SCAN_NOTHID) >= 0) {
de305fs/msdos/namei.cstruct msdos_dir_entry *de;
de317fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino,SCAN_ANY) >= 0) {
de365fs/msdos/namei.cstruct msdos_dir_entry *de;
de372fs/msdos/namei.cwhile (msdos_get_entry(dir,&pos,&bh,&de) > -1)
de373fs/msdos/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de374fs/msdos/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de391fs/msdos/namei.cstruct msdos_dir_entry *de;
de399fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
de414fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de434fs/msdos/namei.cstruct msdos_dir_entry *de;
de439fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
de457fs/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);
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)))
de18fs/smbfs/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de72fs/sysv/dir.cstruct sysv_dir_entry * de, sde;
de87fs/sysv/dir.cde = (struct sysv_dir_entry *) (offset + bh_data);
de88fs/sysv/dir.cif (de->inode) {
de92fs/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;
de71fs/xiafs/dir.cstruct xiafs_direct * de;
de85fs/xiafs/dir.cde = (struct xiafs_direct *) (bh->b_data + i);
de86fs/xiafs/dir.cif (!de->d_rec_len)
de88fs/xiafs/dir.ci += de->d_rec_len;
de91fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
de94fs/xiafs/dir.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de95fs/xiafs/dir.cde->d_rec_len < 12 || 
de96fs/xiafs/dir.c(char *)de+de->d_rec_len > XIAFS_ZSIZE(inode->i_sb)+bh->b_data ||
de97fs/xiafs/dir.cde->d_name_len < 1 || de->d_name_len + 8 > de->d_rec_len ||
de98fs/xiafs/dir.cde->d_name_len > _XIAFS_NAME_LEN ||
de99fs/xiafs/dir.cde->d_name[de->d_name_len] ) {
de104fs/xiafs/dir.cif (de->d_ino) {
de109fs/xiafs/dir.cif (filldir(dirent, de->d_name, de->d_name_len, filp->f_pos, de->d_ino) < 0) {
de114fs/xiafs/dir.coffset += de->d_rec_len;
de115fs/xiafs/dir.cfilp->f_pos += de->d_rec_len;
de116fs/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;
de130include/linux/msdos_fs.hstruct msdos_dir_entry **de);