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->dev, (void *) &de->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->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->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)) {
de99fs/ext/dir.cinode->i_dev, inode->i_ino, offset, de->rec_len, de->name_len);
de105fs/ext/dir.cif (de->inode) {
de106fs/ext/dir.cerror = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode);
de110fs/ext/dir.coffset += de->rec_len;
de111fs/ext/dir.cfilp->f_pos += de->rec_len;
de112fs/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)) {
de122fs/ext/namei.cdir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len);
de123fs/ext/namei.cde = (struct ext_dir_entry *) (bh->b_data+BLOCK_SIZE);
de129fs/ext/namei.cif (ext_match(namelen,name,de)) {
de130fs/ext/namei.c*res_dir = de;
de132fs/ext/namei.cif (offset + de->rec_len < dir->i_size &&
de133fs/ext/namei.c((char *)de) + de->rec_len < BLOCK_SIZE+bh->b_data)
de135fs/ext/namei.c((char *) de + de->rec_len);
de140fs/ext/namei.coffset += de->rec_len;
de142fs/ext/namei.c*prev_dir = de;
de143fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de153fs/ext/namei.cstruct ext_dir_entry * de;
de163fs/ext/namei.cif (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) {
de167fs/ext/namei.cino = de->inode;
de194fs/ext/namei.cstruct ext_dir_entry * de, * de1;
de213fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de215fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) {
de224fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de234fs/ext/namei.cde->inode = 0;
de235fs/ext/namei.cde->rec_len = BLOCK_SIZE
de237fs/ext/namei.cde->name_len = 0;
de238fs/ext/namei.coffset += de->rec_len;
de239fs/ext/namei.cdir->i_size += de->rec_len;
de254fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de257fs/ext/namei.cde->inode=0;
de258fs/ext/namei.cde->rec_len = rec_len;
de259fs/ext/namei.cdir->i_size += de->rec_len;
de265fs/ext/namei.cif (de->rec_len < 8 || de->rec_len % 4 != 0 ||
de266fs/ext/namei.cde->rec_len < de->name_len + 8 ||
de267fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
de270fs/ext/namei.cdir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len);
de274fs/ext/namei.cif (!de->inode && de->rec_len >= rec_len) {
de275fs/ext/namei.cif (de->rec_len > rec_len
de276fs/ext/namei.c&& de->rec_len - rec_len >= EXT_DIR_MIN_SIZE) {
de281fs/ext/namei.cde1 = (struct ext_dir_entry *) ((char *) de + rec_len);
de283fs/ext/namei.cde1->rec_len = de->rec_len - rec_len;
de285fs/ext/namei.cde->rec_len = rec_len;
de289fs/ext/namei.cde->name_len = namelen;
de291fs/ext/namei.cde->name[i] = name[i];
de293fs/ext/namei.c*res_dir = de;
de296fs/ext/namei.coffset += de->rec_len;
de297fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de308fs/ext/namei.cstruct ext_dir_entry * de;
de321fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de329fs/ext/namei.cde->inode = inode->i_ino;
de341fs/ext/namei.cstruct ext_dir_entry * de;
de345fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de380fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de388fs/ext/namei.cde->inode = inode->i_ino;
de400fs/ext/namei.cstruct ext_dir_entry * de;
de402fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de430fs/ext/namei.cde = (struct ext_dir_entry *) dir_block->b_data;
de431fs/ext/namei.cde->inode=inode->i_ino;
de432fs/ext/namei.cde->rec_len=16;
de433fs/ext/namei.cde->name_len=1;
de434fs/ext/namei.cstrcpy(de->name,".");
de435fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de436fs/ext/namei.cde->inode = dir->i_ino;
de437fs/ext/namei.cde->rec_len=16;
de438fs/ext/namei.cde->name_len=2;
de439fs/ext/namei.cstrcpy(de->name,"..");
de447fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de454fs/ext/namei.cde->inode = inode->i_ino;
de471fs/ext/namei.cstruct ext_dir_entry * de, * de1;
de477fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de478fs/ext/namei.cde1 = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de479fs/ext/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de480fs/ext/namei.cstrcmp(".",de->name) || strcmp("..",de1->name)) {
de484fs/ext/namei.coffset = de->rec_len + de1->rec_len;
de485fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de1 + de1->rec_len);
de487fs/ext/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
de494fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de496fs/ext/namei.cif (de->rec_len < 8 || de->rec_len %4 != 0 ||
de497fs/ext/namei.cde->rec_len < de->name_len + 8) {
de500fs/ext/namei.cinode->i_dev, inode->i_ino, offset, de->rec_len, de->name_len);
de504fs/ext/namei.cif (de->inode) {
de508fs/ext/namei.coffset += de->rec_len;
de509fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de515fs/ext/namei.cstatic inline void ext_merge_entries (struct ext_dir_entry * de,
de519fs/ext/namei.cde->rec_len += nde->rec_len;
de521fs/ext/namei.cpde->rec_len += de->rec_len;
de529fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de532fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de537fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de561fs/ext/namei.cde->inode = 0;
de562fs/ext/namei.cde->name_len = 0;
de563fs/ext/namei.cext_merge_entries (de, pde, nde);
de583fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de587fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de590fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de604fs/ext/namei.cde->inode = 0;
de605fs/ext/namei.cde->name_len = 0;
de606fs/ext/namei.cext_merge_entries (de, pde, nde);
de623fs/ext/namei.cstruct ext_dir_entry * de;
de651fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de660fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de668fs/ext/namei.cde->inode = inode->i_ino;
de678fs/ext/namei.cstruct ext_dir_entry * de;
de691fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de698fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de704fs/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.cerror = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode);
de200fs/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;
de334fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de493fs/hpfs/hpfs_fs.cde = map_dirent(s->s_mounted, root_dno, "\001\001", 2, &qbh);
de494fs/hpfs/hpfs_fs.cif (!root_dno || !de) {
de501fs/hpfs/hpfs_fs.cs->s_mounted->i_atime = local_to_gmt(de->read_date);
de502fs/hpfs/hpfs_fs.cs->s_mounted->i_mtime = local_to_gmt(de->write_date);
de503fs/hpfs/hpfs_fs.cs->s_mounted->i_ctime = local_to_gmt(de->creation_date);
de772fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de778fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de783fs/hpfs/hpfs_fs.cfor (; de < de_end; de = de_next_de(de)) {
de784fs/hpfs/hpfs_fs.cif (de->down)
de785fs/hpfs/hpfs_fs.ccount_dnodes(inode, de_down_pointer(de),
de787fs/hpfs/hpfs_fs.cif (de->directory && !de->first)
de789fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1105fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1123fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh);
de1125fs/hpfs/hpfs_fs.cde = map_dirent(dir,
de1129fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh);
de1135fs/hpfs/hpfs_fs.cif (!de)
de1142fs/hpfs/hpfs_fs.cif (de->directory)
de1143fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1145fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1160fs/hpfs/hpfs_fs.cinode->i_atime = local_to_gmt(de->read_date);
de1161fs/hpfs/hpfs_fs.cinode->i_mtime = local_to_gmt(de->write_date);
de1162fs/hpfs/hpfs_fs.cinode->i_ctime = local_to_gmt(de->creation_date);
de1163fs/hpfs/hpfs_fs.cif (de->read_only)
de1165fs/hpfs/hpfs_fs.cif (!de->directory) {
de1166fs/hpfs/hpfs_fs.cinode->i_size = de->file_size;
de1228fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1242fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1248fs/hpfs/hpfs_fs.cfor ( ; de < de_end; de = de_next_de(de)) {
de1253fs/hpfs/hpfs_fs.cl = len < de->namelen ? len : de->namelen;
de1254fs/hpfs/hpfs_fs.ct = memcasecmp(name, de->name, l);
de1260fs/hpfs/hpfs_fs.ct = len - de->namelen;
de1263fs/hpfs/hpfs_fs.creturn de;
de1273fs/hpfs/hpfs_fs.cif (de->down) {
de1274fs/hpfs/hpfs_fs.cdnode_secno sub_dno = de_down_pointer(de);
de1289fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1353fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1388fs/hpfs/hpfs_fs.cde = map_pos_dirent(inode, &filp->f_pos, &qbh);
de1389fs/hpfs/hpfs_fs.cif (!de) {
de1393fs/hpfs/hpfs_fs.cnamelen = de->namelen;
de1394fs/hpfs/hpfs_fs.ctranslate_hpfs_name(de->name, namelen, tempname, lc);
de1395fs/hpfs/hpfs_fs.cif (de->directory)
de1396fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1398fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1420fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1443fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, qbh);
de1449fs/hpfs/hpfs_fs.cif (!de) {
de1460fs/hpfs/hpfs_fs.cif (de->down)
de1469fs/hpfs/hpfs_fs.cif (de->first || de->last) {
de1474fs/hpfs/hpfs_fs.creturn de;
de1483fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1519fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, &qbh);
de1520fs/hpfs/hpfs_fs.cif (!de || !de->down)
de1526fs/hpfs/hpfs_fs.cdno = de_down_pointer(de);
de1547fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de, *de_end;
de1550fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1553fs/hpfs/hpfs_fs.cfor (i = 1; de < de_end; i++, de = de_next_de(de)) {
de1555fs/hpfs/hpfs_fs.creturn de;
de1556fs/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) {
de438fs/minix/namei.cstruct minix_dir_entry * de;
de441fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de446fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de464fs/minix/namei.cif (de->inode != inode->i_ino) {
de474fs/minix/namei.cde->inode = 0;
de495fs/minix/namei.cstruct minix_dir_entry * de;
de500fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de503fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de508fs/minix/namei.cif (de->inode != inode->i_ino) {
de519fs/minix/namei.cif (de->inode != inode->i_ino) {
de528fs/minix/namei.cde->inode = 0;
de546fs/minix/namei.cstruct minix_dir_entry * de;
de574fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de583fs/minix/namei.ci = minix_add_entry(dir, name, len, &bh, &de);
de591fs/minix/namei.cde->inode = inode->i_ino;
de602fs/minix/namei.cstruct minix_dir_entry * de;
de615fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de622fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de628fs/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))
de286fs/msdos/misc.cstruct msdos_dir_entry **de)
de308fs/msdos/misc.c*de = (struct msdos_dir_entry *) ((*bh)->b_data+(offset &
de102fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
de109fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino);
de118fs/msdos/namei.cstruct msdos_dir_entry *de;
de143fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
de185fs/msdos/namei.cstruct msdos_dir_entry *de;
de188fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) {
de192fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res;
de199fs/msdos/namei.cmemcpy(de->name,name,MSDOS_NAME);
de200fs/msdos/namei.cmemset(de->unused, 0, sizeof(de->unused));
de201fs/msdos/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de202fs/msdos/namei.cde->start = 0;
de203fs/msdos/namei.cdate_unix2dos(dir->i_mtime,&de->time,&de->date);
de204fs/msdos/namei.cde->size = 0;
de222fs/msdos/namei.cstruct msdos_dir_entry *de;
de233fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de270fs/msdos/namei.cstruct msdos_dir_entry *de;
de281fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de329fs/msdos/namei.cstruct msdos_dir_entry *de;
de336fs/msdos/namei.cwhile (msdos_get_entry(dir,&pos,&bh,&de) > -1)
de337fs/msdos/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de338fs/msdos/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de355fs/msdos/namei.cstruct msdos_dir_entry *de;
de363fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
de377fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de397fs/msdos/namei.cstruct msdos_dir_entry *de;
de402fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
de416fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de70fs/proc/base.cint proc_match(int len,const char * name,struct proc_dir_entry * de)
de72fs/proc/base.cif (!de || !de->low_ino)
de75fs/proc/base.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de77fs/proc/base.cif (de->namelen != len)
de79fs/proc/base.creturn !memcmp(name, de->name, len);
de126fs/proc/base.cstruct proc_dir_entry * de;
de140fs/proc/base.cde = base_dir + filp->f_pos;
de141fs/proc/base.cino = de->low_ino;
de144fs/proc/base.cif (filldir(dirent, de->name, de->namelen, filp->f_pos, ino) < 0)
de189fs/proc/net.cstruct proc_dir_entry *de;
de198fs/proc/net.cfor (de = net_dir ; de->name ; de++) {
de199fs/proc/net.cif (!proc_match(len, name, de))
de201fs/proc/net.c*result = iget(dir->i_sb, de->low_ino);
de214fs/proc/net.cstruct proc_dir_entry * de;
de221fs/proc/net.cde = net_dir + filp->f_pos;
de222fs/proc/net.cif (filldir(dirent, de->name, de->namelen, filp->f_pos, de->low_ino) < 0)
de159fs/proc/root.cstruct proc_dir_entry * de = root_dir + nr;
de161fs/proc/root.cif (filldir(dirent, de->name, de->namelen, nr, de->low_ino) < 0)
de139fs/proc/scsi.cstruct proc_dir_entry *de = NULL;
de150fs/proc/scsi.cde = scsi_dir;
de152fs/proc/scsi.cde = &scsi_hba_dir[dispatch_scsi_info_ptr(dir->i_ino, 0, 0, 0, 0, 2)];
de156fs/proc/scsi.cde = scsi_dir2;
de158fs/proc/scsi.cfor (; de->name ; de++) {
de159fs/proc/scsi.cif (!proc_match(len, name, de))
de161fs/proc/scsi.c*result = iget(dir->i_sb, de->low_ino);
de174fs/proc/scsi.cstruct proc_dir_entry * de;
de187fs/proc/scsi.cde = scsi_dir + filp->f_pos;
de189fs/proc/scsi.cde = scsi_hba_dir + filp->f_pos + index;
de192fs/proc/scsi.cde = scsi_dir2 + filp->f_pos;
de194fs/proc/scsi.cif (filldir(dirent, de->name, de->namelen, filp->f_pos, de->low_ino)<0)
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)))
de75fs/sysv/dir.cstruct sysv_dir_entry * de, sde;
de90fs/sysv/dir.cde = (struct sysv_dir_entry *) (offset + bh_data);
de91fs/sysv/dir.cif (de->inode) {
de95fs/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) {
de430fs/sysv/namei.cstruct sysv_dir_entry * de;
de433fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de438fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de456fs/sysv/namei.cif (de->inode != inode->i_ino) {
de466fs/sysv/namei.cde->inode = 0;
de486fs/sysv/namei.cstruct sysv_dir_entry * de;
de491fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de494fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de499fs/sysv/namei.cif (de->inode != inode->i_ino) {
de510fs/sysv/namei.cif (de->inode != inode->i_ino) {
de519fs/sysv/namei.cde->inode = 0;
de536fs/sysv/namei.cstruct sysv_dir_entry * de;
de569fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de578fs/sysv/namei.ci = sysv_add_entry(dir, name, len, &bh, &de);
de586fs/sysv/namei.cde->inode = inode->i_ino;
de597fs/sysv/namei.cstruct sysv_dir_entry * de;
de610fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de617fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de623fs/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;
de125include/linux/msdos_fs.hstruct msdos_dir_entry **de);