taglinefilesource code
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);
de23fs/ext/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de75fs/ext/dir.cstruct ext_dir_entry * de;
de90fs/ext/dir.cde = (struct ext_dir_entry *) (bh->b_data + i);
de91fs/ext/dir.cif (!de->rec_len)
de93fs/ext/dir.ci += de->rec_len;
de96fs/ext/dir.cde = (struct ext_dir_entry *) (offset + bh->b_data);
de98fs/ext/dir.cif (de->rec_len < 8 || de->rec_len % 8 != 0 ||
de99fs/ext/dir.cde->rec_len < de->name_len + 8 ||
de100fs/ext/dir.c(de->rec_len + (off_t) filp->f_pos - 1) / 1024 > ((off_t) filp->f_pos / 1024)) {
de103fs/ext/dir.cinode->i_dev, inode->i_ino, offset, de->rec_len, de->name_len);
de109fs/ext/dir.coffset += de->rec_len;
de110fs/ext/dir.cfilp->f_pos += de->rec_len;
de111fs/ext/dir.cif (de->inode) {
de112fs/ext/dir.cfor (i = 0; i < de->name_len; i++)
de113fs/ext/dir.cif ((c = de->name[i]) != 0)
de118fs/ext/dir.cput_fs_long(de->inode,&dirent->d_ino);
de125fs/ext/dir.cde = (struct ext_dir_entry *) ((char *) de 
de126fs/ext/dir.c+ 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;
de288fs/ext/namei.cde->name_len = namelen;
de290fs/ext/namei.cde->name[i] = name[i];
de292fs/ext/namei.c*res_dir = de;
de295fs/ext/namei.coffset += de->rec_len;
de296fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de307fs/ext/namei.cstruct ext_dir_entry * de;
de320fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de328fs/ext/namei.cde->inode = inode->i_ino;
de340fs/ext/namei.cstruct ext_dir_entry * de;
de344fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de379fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de387fs/ext/namei.cde->inode = inode->i_ino;
de399fs/ext/namei.cstruct ext_dir_entry * de;
de401fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de429fs/ext/namei.cde = (struct ext_dir_entry *) dir_block->b_data;
de430fs/ext/namei.cde->inode=inode->i_ino;
de431fs/ext/namei.cde->rec_len=16;
de432fs/ext/namei.cde->name_len=1;
de433fs/ext/namei.cstrcpy(de->name,".");
de434fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de435fs/ext/namei.cde->inode = dir->i_ino;
de436fs/ext/namei.cde->rec_len=16;
de437fs/ext/namei.cde->name_len=2;
de438fs/ext/namei.cstrcpy(de->name,"..");
de446fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de453fs/ext/namei.cde->inode = inode->i_ino;
de470fs/ext/namei.cstruct ext_dir_entry * de, * de1;
de476fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de477fs/ext/namei.cde1 = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de478fs/ext/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de479fs/ext/namei.cstrcmp(".",de->name) || strcmp("..",de1->name)) {
de483fs/ext/namei.coffset = de->rec_len + de1->rec_len;
de484fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de1 + de1->rec_len);
de486fs/ext/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
de493fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de495fs/ext/namei.cif (de->rec_len < 8 || de->rec_len %4 != 0 ||
de496fs/ext/namei.cde->rec_len < de->name_len + 8) {
de499fs/ext/namei.cinode->i_dev, inode->i_ino, offset, de->rec_len, de->name_len);
de503fs/ext/namei.cif (de->inode) {
de507fs/ext/namei.coffset += de->rec_len;
de508fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de514fs/ext/namei.cstatic inline void ext_merge_entries (struct ext_dir_entry * de,
de518fs/ext/namei.cde->rec_len += nde->rec_len;
de520fs/ext/namei.cpde->rec_len += de->rec_len;
de528fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de531fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de536fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de560fs/ext/namei.cde->inode = 0;
de561fs/ext/namei.cde->name_len = 0;
de562fs/ext/namei.cext_merge_entries (de, pde, nde);
de582fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de586fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de589fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de603fs/ext/namei.cde->inode = 0;
de604fs/ext/namei.cde->name_len = 0;
de605fs/ext/namei.cext_merge_entries (de, pde, nde);
de622fs/ext/namei.cstruct ext_dir_entry * de;
de650fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de659fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de667fs/ext/namei.cde->inode = inode->i_ino;
de677fs/ext/namei.cstruct ext_dir_entry * de;
de690fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de697fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de703fs/ext/namei.cde->inode = oldinode->i_ino;
de25fs/ext2/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de75fs/ext2/dir.cstruct ext2_dir_entry * de, struct buffer_head * bh,
de80fs/ext2/dir.cif (de->rec_len < EXT2_DIR_REC_LEN(1))
de82fs/ext2/dir.celse if (de->rec_len % 4 != 0)
de84fs/ext2/dir.celse if (de->rec_len < EXT2_DIR_REC_LEN(de->name_len))
de86fs/ext2/dir.celse if (dir && ((char *) de - bh->b_data) + de->rec_len >
de89fs/ext2/dir.celse if (dir && de->inode > dir->i_sb->u.ext2_sb.s_es->s_inodes_count)
de95fs/ext2/dir.cerror_msg, offset, de->inode, de->rec_len,
de96fs/ext2/dir.cde->name_len);
de106fs/ext2/dir.cstruct ext2_dir_entry * de;
de152fs/ext2/dir.cde = (struct ext2_dir_entry *) 
de160fs/ext2/dir.cif (de->rec_len < EXT2_DIR_REC_LEN(1))
de162fs/ext2/dir.ci += de->rec_len;
de172fs/ext2/dir.cde = (struct ext2_dir_entry *) (bh->b_data + offset);
de173fs/ext2/dir.cif (!ext2_check_dir_entry ("ext2_readdir", inode, de,
de182fs/ext2/dir.cif (de->inode) {
de184fs/ext2/dir.c+ de->name_len + 1);
de201fs/ext2/dir.ci = de->name_len;
de202fs/ext2/dir.cmemcpy_tofs (dirent->d_name, de->name, i);
de203fs/ext2/dir.cput_fs_long (de->inode, &dirent->d_ino);
de209fs/ext2/dir.cdcache_add(inode, de->name, de->name_len,
de210fs/ext2/dir.cde->inode);
de216fs/ext2/dir.coffset += de->rec_len;
de217fs/ext2/dir.cfilp->f_pos += de->rec_len;
de44fs/ext2/namei.cstruct ext2_dir_entry * de)
de46fs/ext2/namei.cif (!de || !de->inode || len > EXT2_NAME_LEN)
de51fs/ext2/namei.cif (!len && de->name_len == 1 && (de->name[0] == '.') &&
de52fs/ext2/namei.c(de->name[1] == '\0'))
de54fs/ext2/namei.cif (len != de->name_len)
de56fs/ext2/namei.creturn !memcmp(name, de->name, len);
de107fs/ext2/namei.cstruct ext2_dir_entry * de;
de126fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de128fs/ext2/namei.cwhile ((char *) de < dlimit) {
de130fs/ext2/namei.cde, bh, offset))
de132fs/ext2/namei.cif (de->inode != 0 && ext2_match (namelen, name, de)) {
de137fs/ext2/namei.c*res_dir = de;
de140fs/ext2/namei.coffset += de->rec_len;
de141fs/ext2/namei.cde = (struct ext2_dir_entry *)
de142fs/ext2/namei.c((char *) de + de->rec_len);
de166fs/ext2/namei.cstruct ext2_dir_entry * de;
de189fs/ext2/namei.cif (!(bh = ext2_find_entry (dir, name, len, &de))) {
de195fs/ext2/namei.cino = de->inode;
de224fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de254fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de257fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
de271fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de272fs/ext2/namei.cde->inode = 0;
de273fs/ext2/namei.cde->rec_len = sb->s_blocksize;
de280fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de283fs/ext2/namei.cif (!ext2_check_dir_entry ("ext2_add_entry", dir, de, bh,
de289fs/ext2/namei.cif (de->inode != 0 && ext2_match (namelen, name, de)) {
de294fs/ext2/namei.cif ((de->inode == 0 && de->rec_len >= rec_len) ||
de295fs/ext2/namei.c(de->rec_len >= EXT2_DIR_REC_LEN(de->name_len) + rec_len)) {
de296fs/ext2/namei.coffset += de->rec_len;
de297fs/ext2/namei.cif (de->inode) {
de298fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de +
de299fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len));
de300fs/ext2/namei.cde1->rec_len = de->rec_len -
de301fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len);
de302fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de303fs/ext2/namei.cde = de1;
de305fs/ext2/namei.cde->inode = 0;
de306fs/ext2/namei.cde->name_len = namelen;
de307fs/ext2/namei.cmemcpy (de->name, name, namelen);
de323fs/ext2/namei.c*res_dir = de;
de327fs/ext2/namei.coffset += de->rec_len;
de328fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de341fs/ext2/namei.cstruct ext2_dir_entry * de, * pde;
de346fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de349fs/ext2/namei.cde, bh, i))
de351fs/ext2/namei.cif (de == dir)  {
de357fs/ext2/namei.ci += de->rec_len;
de358fs/ext2/namei.cpde = de;
de359fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de369fs/ext2/namei.cstruct ext2_dir_entry * de;
de383fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de391fs/ext2/namei.cde->inode = inode->i_ino;
de393fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de410fs/ext2/namei.cstruct ext2_dir_entry * de;
de415fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de447fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de455fs/ext2/namei.cde->inode = inode->i_ino;
de457fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de473fs/ext2/namei.cstruct ext2_dir_entry * de;
de478fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de504fs/ext2/namei.cde = (struct ext2_dir_entry *) dir_block->b_data;
de505fs/ext2/namei.cde->inode = inode->i_ino;
de506fs/ext2/namei.cde->name_len = 1;
de507fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de508fs/ext2/namei.cstrcpy (de->name, ".");
de509fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de510fs/ext2/namei.cde->inode = dir->i_ino;
de511fs/ext2/namei.cde->rec_len = inode->i_sb->s_blocksize - EXT2_DIR_REC_LEN(1);
de512fs/ext2/namei.cde->name_len = 2;
de513fs/ext2/namei.cstrcpy (de->name, "..");
de521fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de529fs/ext2/namei.cde->inode = inode->i_ino;
de531fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de552fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de563fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de564fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de565fs/ext2/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de566fs/ext2/namei.cstrcmp (".", de->name) || strcmp ("..", de1->name)) {
de571fs/ext2/namei.coffset = de->rec_len + de1->rec_len;
de572fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de1 + de1->rec_len);
de574fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
de581fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de583fs/ext2/namei.cif (!ext2_check_dir_entry ("empty_dir", inode, de, bh,
de588fs/ext2/namei.cif (de->inode) {
de592fs/ext2/namei.coffset += de->rec_len;
de593fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de604fs/ext2/namei.cstruct ext2_dir_entry * de;
de610fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de615fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de619fs/ext2/namei.cif (de->inode != inode->i_ino) {
de639fs/ext2/namei.celse if (de->inode != inode->i_ino)
de652fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de685fs/ext2/namei.cstruct ext2_dir_entry * de;
de692fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de695fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de702fs/ext2/namei.cif (de->inode != inode->i_ino) {
de719fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de744fs/ext2/namei.cstruct ext2_dir_entry * de;
de790fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de799fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de807fs/ext2/namei.cde->inode = inode->i_ino;
de809fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de824fs/ext2/namei.cstruct ext2_dir_entry * de;
de843fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de850fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de856fs/ext2/namei.cde->inode = oldinode->i_ino;
de858fs/ext2/namei.cdcache_add(dir, de->name, de->name_len, de->inode);
de268fs/hpfs/hpfs.hstatic inline dnode_secno de_down_pointer (struct hpfs_dirent *de)
de270fs/hpfs/hpfs.hreturn *(dnode_secno *) ((void *) de + de->length - 4);
de289fs/hpfs/hpfs.hstatic inline struct hpfs_dirent *de_next_de (struct hpfs_dirent *de)
de291fs/hpfs/hpfs.hreturn (void *) de + de->length;
de120fs/hpfs/hpfs_fs.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de338fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de497fs/hpfs/hpfs_fs.cde = map_dirent(s->s_mounted, root_dno, "\001\001", 2, &qbh);
de498fs/hpfs/hpfs_fs.cif (!root_dno || !de) {
de505fs/hpfs/hpfs_fs.cs->s_mounted->i_atime = local_to_gmt(de->read_date);
de506fs/hpfs/hpfs_fs.cs->s_mounted->i_mtime = local_to_gmt(de->write_date);
de507fs/hpfs/hpfs_fs.cs->s_mounted->i_ctime = local_to_gmt(de->creation_date);
de775fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de781fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de786fs/hpfs/hpfs_fs.cfor (; de < de_end; de = de_next_de(de)) {
de787fs/hpfs/hpfs_fs.cif (de->down)
de788fs/hpfs/hpfs_fs.ccount_dnodes(inode, de_down_pointer(de),
de790fs/hpfs/hpfs_fs.cif (de->directory && !de->first)
de792fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1108fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1126fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh);
de1128fs/hpfs/hpfs_fs.cde = map_dirent(dir,
de1132fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh);
de1138fs/hpfs/hpfs_fs.cif (!de)
de1145fs/hpfs/hpfs_fs.cif (de->directory)
de1146fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1148fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1163fs/hpfs/hpfs_fs.cinode->i_atime = local_to_gmt(de->read_date);
de1164fs/hpfs/hpfs_fs.cinode->i_mtime = local_to_gmt(de->write_date);
de1165fs/hpfs/hpfs_fs.cinode->i_ctime = local_to_gmt(de->creation_date);
de1166fs/hpfs/hpfs_fs.cif (de->read_only)
de1168fs/hpfs/hpfs_fs.cif (!de->directory) {
de1169fs/hpfs/hpfs_fs.cinode->i_size = de->file_size;
de1235fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1249fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1255fs/hpfs/hpfs_fs.cfor ( ; de < de_end; de = de_next_de(de)) {
de1260fs/hpfs/hpfs_fs.cl = len < de->namelen ? len : de->namelen;
de1261fs/hpfs/hpfs_fs.ct = memcasecmp(name, de->name, l);
de1267fs/hpfs/hpfs_fs.ct = len - de->namelen;
de1270fs/hpfs/hpfs_fs.creturn de;
de1280fs/hpfs/hpfs_fs.cif (de->down) {
de1281fs/hpfs/hpfs_fs.cdnode_secno sub_dno = de_down_pointer(de);
de1296fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1336fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1363fs/hpfs/hpfs_fs.cde = map_pos_dirent(inode, &filp->f_pos, &qbh);
de1364fs/hpfs/hpfs_fs.cif (!de) {
de1369fs/hpfs/hpfs_fs.cnamelen = de->namelen;
de1370fs/hpfs/hpfs_fs.cif (de->directory)
de1371fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1373fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1374fs/hpfs/hpfs_fs.cwrite_one_dirent(dirent, de->name, namelen, ino, lc);
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)
de25fs/isofs/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de77fs/isofs/dir.cstruct iso_directory_record * de;
de96fs/isofs/dir.cde = (struct iso_directory_record *) (bh->b_data + offset);
de103fs/isofs/dir.cif (*((unsigned char *) de) == 0)  {
de122fs/isofs/dir.coffset += *((unsigned char *) de);
de123fs/isofs/dir.cfilp->f_pos += *((unsigned char *) de);
de128fs/isofs/dir.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de131fs/isofs/dir.cde = (struct iso_directory_record *) ((char *)cpnt);
de148fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 0) {
de156fs/isofs/dir.celse if (de->name_len[0] == 1 && de->name[0] == 1) {
de170fs/isofs/dir.cfind_rock_ridge_relocation(de, inode));
de184fs/isofs/dir.cif (de->flags[-high_sierra] & 5) {
de191fs/isofs/dir.cdlen = de->name_len[0];
de192fs/isofs/dir.cdpnt = de->name;
de194fs/isofs/dir.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, inode);
de213fs/isofs/dir.cif (c == '.' && i == dlen-3 && de->name[i+1] == ';' && de->name[i+2] == '1')
de215fs/isofs/dir.cif (c == ';' && i == dlen-2 && de->name[i+1] == '1') 
de558fs/isofs/inode.cstruct iso_directory_record * de;
de565fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de566fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de572fs/isofs/inode.coffset += *((unsigned char *) de);
de582fs/isofs/inode.cif (de->name_len[0] == 1 && de->name[0] == 1) 
de584fs/isofs/inode.cparent_dir = find_rock_ridge_relocation(de, parent);
de585fs/isofs/inode.cdirectory_size = isonum_733 (de->size);
de604fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de611fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de631fs/isofs/inode.coffset += *((unsigned char *) de);
de637fs/isofs/inode.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de640fs/isofs/inode.cde = (struct iso_directory_record *) ((char *)cpnt);
de653fs/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);
de74fs/isofs/namei.cstruct iso_directory_record * de;
de90fs/isofs/namei.cde = (struct iso_directory_record *) (bh->b_data + offset);
de97fs/isofs/namei.cif (*((unsigned char *) de) == 0) {
de109fs/isofs/namei.coffset += *((unsigned char *) de);
de110fs/isofs/namei.cf_pos += *((unsigned char *) de);
de117fs/isofs/namei.ccpnt = kmalloc(*((unsigned char *) de),GFP_KERNEL);
de121fs/isofs/namei.cde = (struct iso_directory_record *) cpnt;
de134fs/isofs/namei.cif (de->name[0]==0 && de->name_len[0]==1) {
de141fs/isofs/namei.cif (de->name[0]==1 && de->name_len[0]==1) {
de156fs/isofs/namei.cif (de->flags[-high_sierra] & 5) {
de164fs/isofs/namei.cdlen = de->name_len[0];
de165fs/isofs/namei.cdpnt = de->name;
de167fs/isofs/namei.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir);
de180fs/isofs/namei.cde->name[i] = c;
de200fs/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);
de16fs/minix/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de67fs/minix/dir.cstruct minix_dir_entry * de;
de84fs/minix/dir.cde = (struct minix_dir_entry *) (offset + bh->b_data);
de88fs/minix/dir.cif (de->inode) {
de91fs/minix/dir.cif ((c = de->name[i]) != 0)
de96fs/minix/dir.cput_fs_long(de->inode,&dirent->d_ino);
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)) {
de193fs/minix/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de196fs/minix/namei.c*res_dir = de;
de216fs/minix/namei.cstruct minix_dir_entry * de;
de229fs/minix/namei.cerror = minix_add_entry(dir,name,len, &bh ,&de);
de237fs/minix/namei.cde->inode = inode->i_ino;
de250fs/minix/namei.cstruct minix_dir_entry * de;
de254fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de286fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de294fs/minix/namei.cde->inode = inode->i_ino;
de307fs/minix/namei.cstruct minix_dir_entry * de;
de315fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de340fs/minix/namei.cde = (struct minix_dir_entry *) dir_block->b_data;
de341fs/minix/namei.cde->inode=inode->i_ino;
de342fs/minix/namei.cstrcpy(de->name,".");
de343fs/minix/namei.cde = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize);
de344fs/minix/namei.cde->inode = dir->i_ino;
de345fs/minix/namei.cstrcpy(de->name,"..");
de353fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de360fs/minix/namei.cde->inode = inode->i_ino;
de377fs/minix/namei.cstruct minix_dir_entry * de;
de393fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
de394fs/minix/namei.cif (!de->inode || strcmp(de->name,"."))
de396fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize);
de397fs/minix/namei.cif (!de->inode || strcmp(de->name,".."))
de407fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
de409fs/minix/namei.cif (de->inode) {
de433fs/minix/namei.cstruct minix_dir_entry * de;
de436fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de441fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de459fs/minix/namei.cif (de->inode != inode->i_ino) {
de469fs/minix/namei.cde->inode = 0;
de490fs/minix/namei.cstruct minix_dir_entry * de;
de495fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de498fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de503fs/minix/namei.cif (de->inode != inode->i_ino) {
de514fs/minix/namei.cif (de->inode != inode->i_ino) {
de523fs/minix/namei.cde->inode = 0;
de541fs/minix/namei.cstruct minix_dir_entry * de;
de569fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de578fs/minix/namei.ci = minix_add_entry(dir, name, len, &bh, &de);
de586fs/minix/namei.cde->inode = inode->i_ino;
de597fs/minix/namei.cstruct minix_dir_entry * de;
de610fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de617fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de623fs/minix/namei.cde->inode = oldinode->i_ino;
de17fs/msdos/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de68fs/msdos/dir.cstruct msdos_dir_entry *de;
de86fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
de87fs/msdos/dir.cif (!IS_FREE(de->name) && !(de->attr & ATTR_VOLUME)) {
de91fs/msdos/dir.cif (!(c = de->name[i])) break;
de101fs/msdos/dir.cif (!(c = de->ext[i2])) break;
de109fs/msdos/dir.cif (!strcmp(de->name,MSDOS_DOT))
de111fs/msdos/dir.celse if (!strcmp(de->name,MSDOS_DOTDOT))
de256fs/msdos/misc.cstruct msdos_dir_entry **de)
de277fs/msdos/misc.c*de = (struct msdos_dir_entry *) ((*bh)->b_data+(offset &
de96fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
de103fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino);
de111fs/msdos/namei.cstruct msdos_dir_entry *de;
de136fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
de177fs/msdos/namei.cstruct msdos_dir_entry *de;
de180fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) {
de184fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res;
de191fs/msdos/namei.cmemcpy(de->name,name,MSDOS_NAME);
de192fs/msdos/namei.cmemset(de->unused, 0, sizeof(de->unused));
de193fs/msdos/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de194fs/msdos/namei.cde->start = 0;
de195fs/msdos/namei.cdate_unix2dos(dir->i_mtime,&de->time,&de->date);
de196fs/msdos/namei.cde->size = 0;
de213fs/msdos/namei.cstruct msdos_dir_entry *de;
de224fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de260fs/msdos/namei.cstruct msdos_dir_entry *de;
de271fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de318fs/msdos/namei.cstruct msdos_dir_entry *de;
de325fs/msdos/namei.cwhile (msdos_get_entry(dir,&pos,&bh,&de) > -1)
de326fs/msdos/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de327fs/msdos/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de343fs/msdos/namei.cstruct msdos_dir_entry *de;
de351fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
de365fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de384fs/msdos/namei.cstruct msdos_dir_entry *de;
de389fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
de403fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de21fs/nfs/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de123fs/pipe.cstatic int pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count)
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;
de142fs/proc/base.ci = de->namelen;
de143fs/proc/base.cino = de->low_ino;
de151fs/proc/base.cput_fs_byte(de->name[i], i+dirent->d_name);
de140fs/proc/net.cstruct proc_dir_entry *de;
de149fs/proc/net.cfor (de = net_dir ; de->name ; de++) {
de150fs/proc/net.cif (!proc_match(len, name, de))
de152fs/proc/net.c*result = iget(dir->i_sb, de->low_ino);
de164fs/proc/net.cstruct proc_dir_entry * de;
de172fs/proc/net.cde = net_dir + filp->f_pos;
de174fs/proc/net.ci = de->namelen;
de175fs/proc/net.cino = de->low_ino;
de181fs/proc/net.cput_fs_byte(de->name[i], i+dirent->d_name);
de148fs/proc/root.cstruct proc_dir_entry * de = root_dir + nr;
de151fs/proc/root.ci = de->namelen;
de152fs/proc/root.cput_fs_long(de->low_ino, &dirent->d_ino);
de157fs/proc/root.cput_fs_byte(de->name[i], i+dirent->d_name);
de23fs/sysv/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de75fs/sysv/dir.cstruct sysv_dir_entry * de;
de90fs/sysv/dir.cde = (struct sysv_dir_entry *) (offset + bh_data);
de93fs/sysv/dir.cif (de->inode) {
de99fs/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)) {
de188fs/sysv/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de190fs/sysv/namei.c*res_dir = de;
de209fs/sysv/namei.cstruct sysv_dir_entry * de;
de222fs/sysv/namei.cerror = sysv_add_entry(dir,name,len, &bh ,&de);
de230fs/sysv/namei.cde->inode = inode->i_ino;
de243fs/sysv/namei.cstruct sysv_dir_entry * de;
de247fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de279fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de287fs/sysv/namei.cde->inode = inode->i_ino;
de300fs/sysv/namei.cstruct sysv_dir_entry * de;
de306fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de331fs/sysv/namei.cde = (struct sysv_dir_entry *) (dir_block->b_data + 0*SYSV_DIRSIZE);
de332fs/sysv/namei.cde->inode = inode->i_ino;
de333fs/sysv/namei.cstrcpy(de->name,"."); /* rest of de->name is zero, see sysv_new_block */
de334fs/sysv/namei.cde = (struct sysv_dir_entry *) (dir_block->b_data + 1*SYSV_DIRSIZE);
de335fs/sysv/namei.cde->inode = dir->i_ino;
de336fs/sysv/namei.cstrcpy(de->name,".."); /* rest of de->name is zero, see sysv_new_block */
de344fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de351fs/sysv/namei.cde->inode = inode->i_ino;
de369fs/sysv/namei.cstruct sysv_dir_entry * de;
de383fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + 0*SYSV_DIRSIZE);
de384fs/sysv/namei.cif (!de->inode || strcmp(de->name,"."))
de386fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + 1*SYSV_DIRSIZE);
de387fs/sysv/namei.cif (!de->inode || strcmp(de->name,".."))
de399fs/sysv/namei.cde = (struct sysv_dir_entry *) (bh->b_data + offset);
de402fs/sysv/namei.cif (de->inode) {
de425fs/sysv/namei.cstruct sysv_dir_entry * de;
de428fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de433fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de451fs/sysv/namei.cif (de->inode != inode->i_ino) {
de461fs/sysv/namei.cde->inode = 0;
de481fs/sysv/namei.cstruct sysv_dir_entry * de;
de486fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de489fs/sysv/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de494fs/sysv/namei.cif (de->inode != inode->i_ino) {
de505fs/sysv/namei.cif (de->inode != inode->i_ino) {
de514fs/sysv/namei.cde->inode = 0;
de531fs/sysv/namei.cstruct sysv_dir_entry * de;
de564fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de573fs/sysv/namei.ci = sysv_add_entry(dir, name, len, &bh, &de);
de581fs/sysv/namei.cde->inode = inode->i_ino;
de592fs/sysv/namei.cstruct sysv_dir_entry * de;
de605fs/sysv/namei.cbh = sysv_find_entry(dir,name,len,&de);
de612fs/sysv/namei.cerror = sysv_add_entry(dir, name, len, &bh, &de);
de618fs/sysv/namei.cde->inode = oldinode->i_ino;
de22fs/xiafs/dir.c#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
de73fs/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.coffset += de->d_rec_len;
de108fs/xiafs/dir.cfilp->f_pos += de->d_rec_len;
de109fs/xiafs/dir.cif (de->d_ino) {
de110fs/xiafs/dir.cfor (i = 0; i < de->d_name_len ; i++)
de111fs/xiafs/dir.cput_fs_byte(de->d_name[i],i+dirent->d_name);
de113fs/xiafs/dir.cput_fs_long(de->d_ino,&dirent->d_ino);
de122fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
de159fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de174fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)bh->b_data;
de176fs/xiafs/namei.cif (de->d_rec_len != 12 || !de->d_ino || de->d_name_len != 1 ||
de177fs/xiafs/namei.cstrcmp(de->d_name, ".")) {
de183fs/xiafs/namei.cde_pre=de=(struct xiafs_direct *)(bh->b_data+12);
de188fs/xiafs/namei.cde->d_ino=0;
de189fs/xiafs/namei.cde->d_name_len=0;
de190fs/xiafs/namei.cde->d_name[0]=0;
de191fs/xiafs/namei.cde->d_rec_len=XIAFS_ZSIZE(dir->i_sb);
de195fs/xiafs/namei.cif (de->d_ino > dir->i_sb->u.xiafs_sb.s_ninodes ||
de196fs/xiafs/namei.cde->d_rec_len < 12 || 
de197fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(dir->i_sb) ||
de198fs/xiafs/namei.cde->d_name_len + 8 > de->d_rec_len ||
de199fs/xiafs/namei.cde->d_name[de->d_name_len]) {
de204fs/xiafs/namei.cif (de->d_ino &&
de205fs/xiafs/namei.cRNDUP4(de->d_name_len)+RNDUP4(namelen)+16<=de->d_rec_len) {
de206fs/xiafs/namei.ci=RNDUP4(de->d_name_len)+8;
de207fs/xiafs/namei.cde_pre=de;
de208fs/xiafs/namei.cde=(struct xiafs_direct *)(i+(u_char *)de_pre);
de209fs/xiafs/namei.cde->d_ino=0;
de210fs/xiafs/namei.cde->d_rec_len=de_pre->d_rec_len-i;
de214fs/xiafs/namei.cif (!de->d_ino && RNDUP4(namelen)+8 <= de->d_rec_len) {
de221fs/xiafs/namei.cmemcpy(de->d_name, name, namelen);
de222fs/xiafs/namei.cde->d_name[namelen]=0;
de223fs/xiafs/namei.cde->d_name_len=namelen;
de225fs/xiafs/namei.c*res_dir = de;
de230fs/xiafs/namei.coffset+=de->d_rec_len;
de231fs/xiafs/namei.cde_pre=de;
de232fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de249fs/xiafs/namei.cstruct xiafs_direct * de;
de262fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de270fs/xiafs/namei.cde->d_ino = inode->i_ino;
de282fs/xiafs/namei.cstruct xiafs_direct * de;
de286fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de319fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de327fs/xiafs/namei.cde->d_ino = inode->i_ino;
de339fs/xiafs/namei.cstruct xiafs_direct * de;
de341fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de367fs/xiafs/namei.cde = (struct xiafs_direct *) dir_block->b_data;
de368fs/xiafs/namei.cde->d_ino=inode->i_ino;
de369fs/xiafs/namei.cstrcpy(de->d_name,".");
de370fs/xiafs/namei.cde->d_name_len=1;
de371fs/xiafs/namei.cde->d_rec_len=12;
de372fs/xiafs/namei.cde =(struct xiafs_direct *)(12 + dir_block->b_data);
de373fs/xiafs/namei.cde->d_ino = dir->i_ino;
de374fs/xiafs/namei.cstrcpy(de->d_name,"..");
de375fs/xiafs/namei.cde->d_name_len=2;
de376fs/xiafs/namei.cde->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12;
de384fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de391fs/xiafs/namei.cde->d_ino = inode->i_ino;
de408fs/xiafs/namei.cstruct xiafs_direct * de;
de423fs/xiafs/namei.cde=(struct xiafs_direct *)bh->b_data;
de424fs/xiafs/namei.cif (de->d_ino != inode->i_ino || strcmp(".", de->d_name) ||
de425fs/xiafs/namei.cde->d_rec_len != 12 ) {
de430fs/xiafs/namei.cde=(struct xiafs_direct *)(12 + bh->b_data);
de431fs/xiafs/namei.cif (!de->d_ino || strcmp("..", de->d_name)) {
de436fs/xiafs/namei.coffset=de->d_rec_len+12;
de443fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de444fs/xiafs/namei.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de445fs/xiafs/namei.cde->d_rec_len < 12 || 
de446fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) ||
de447fs/xiafs/namei.cde->d_name_len + 8 > de->d_rec_len ||
de448fs/xiafs/namei.cde->d_name[de->d_name_len]) {
de453fs/xiafs/namei.cif (de->d_ino) {
de457fs/xiafs/namei.coffset+=de->d_rec_len;
de464fs/xiafs/namei.cstatic void xiafs_rm_entry(struct xiafs_direct *de, struct xiafs_direct * de_pre)
de466fs/xiafs/namei.cif (de==de_pre) {
de467fs/xiafs/namei.cde->d_ino=0;
de470fs/xiafs/namei.cwhile (de_pre->d_rec_len+(u_char *)de_pre < (u_char *)de) {
de477fs/xiafs/namei.cif (de_pre->d_rec_len+(u_char *)de_pre > (u_char *)de) {
de481fs/xiafs/namei.cde_pre->d_rec_len+=de->d_rec_len;
de489fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de492fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de497fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de521fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de541fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de546fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de549fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de554fs/xiafs/namei.cif (de->d_ino != inode->i_ino) {
de569fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de586fs/xiafs/namei.cstruct xiafs_direct * de;
de592fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len, &de, NULL);
de619fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de627fs/xiafs/namei.cde->d_ino = inode->i_ino;
de638fs/xiafs/namei.cstruct xiafs_direct * de;
de651fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, NULL);
de658fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de664fs/xiafs/namei.cde->d_ino = oldinode->i_ino;
de132include/linux/msdos_fs.hstruct msdos_dir_entry **de);