taglinefilesource code
de70fs/ext/dir.cstruct ext_dir_entry * de;
de83fs/ext/dir.cde = (struct ext_dir_entry *) (offset + bh->b_data);
de85fs/ext/dir.cif (de->rec_len < 8 || de->rec_len % 8 != 0 ||
de86fs/ext/dir.cde->rec_len < de->name_len + 8 ||
de87fs/ext/dir.c(de->rec_len + filp->f_pos - 1) / 1024 > (filp->f_pos / 1024)) {
de90fs/ext/dir.cinode->i_dev, inode->i_ino, offset, de->rec_len, de->name_len);
de96fs/ext/dir.coffset += de->rec_len;
de97fs/ext/dir.cfilp->f_pos += de->rec_len;
de98fs/ext/dir.cif (de->inode) {
de99fs/ext/dir.cfor (i = 0; i < de->name_len; i++)
de100fs/ext/dir.cif ((c = de->name[i]) != 0)
de105fs/ext/dir.cput_fs_long(de->inode,&dirent->d_ino);
de112fs/ext/dir.cde = (struct ext_dir_entry *) ((char *) de 
de113fs/ext/dir.c+ de->rec_len);
de56fs/ext/namei.cstatic int ext_match(int len,const char * name,struct ext_dir_entry * de)
de60fs/ext/namei.cif (!de || !de->inode || len > EXT_NAME_LEN)
de63fs/ext/namei.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de65fs/ext/namei.cif (len < EXT_NAME_LEN && len != de->name_len)
de71fs/ext/namei.c:"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len)
de93fs/ext/namei.cstruct ext_dir_entry * de;
de113fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de115fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data) {
de121fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de125fs/ext/namei.cif (de->rec_len < 8 || de->rec_len % 8 != 0 ||
de126fs/ext/namei.cde->rec_len < de->name_len + 8 ||
de127fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
de130fs/ext/namei.cdir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len);
de131fs/ext/namei.cde = (struct ext_dir_entry *) (bh->b_data+BLOCK_SIZE);
de137fs/ext/namei.cif (ext_match(namelen,name,de)) {
de138fs/ext/namei.c*res_dir = de;
de140fs/ext/namei.cif (offset + de->rec_len < dir->i_size &&
de141fs/ext/namei.c((char *)de) + de->rec_len < BLOCK_SIZE+bh->b_data)
de143fs/ext/namei.c((char *) de + de->rec_len);
de148fs/ext/namei.coffset += de->rec_len;
de150fs/ext/namei.c*prev_dir = de;
de151fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de161fs/ext/namei.cstruct ext_dir_entry * de;
de171fs/ext/namei.cif (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) {
de175fs/ext/namei.cino = de->inode;
de202fs/ext/namei.cstruct ext_dir_entry * de, * de1;
de221fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de223fs/ext/namei.cif ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) {
de232fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de242fs/ext/namei.cde->inode = 0;
de243fs/ext/namei.cde->rec_len = BLOCK_SIZE
de245fs/ext/namei.cde->name_len = 0;
de246fs/ext/namei.coffset += de->rec_len;
de247fs/ext/namei.cdir->i_size += de->rec_len;
de260fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de263fs/ext/namei.cde->inode=0;
de264fs/ext/namei.cde->rec_len = rec_len;
de265fs/ext/namei.cdir->i_size += de->rec_len;
de269fs/ext/namei.cif (de->rec_len < 8 || de->rec_len % 4 != 0 ||
de270fs/ext/namei.cde->rec_len < de->name_len + 8 ||
de271fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
de274fs/ext/namei.cdir->i_dev, dir->i_ino, offset, de->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;
de292fs/ext/namei.cde->name_len = namelen;
de294fs/ext/namei.cde->name[i] = name[i];
de296fs/ext/namei.c*res_dir = de;
de299fs/ext/namei.coffset += de->rec_len;
de300fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de311fs/ext/namei.cstruct ext_dir_entry * de;
de324fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de332fs/ext/namei.cde->inode = inode->i_ino;
de344fs/ext/namei.cstruct ext_dir_entry * de;
de348fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de381fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de389fs/ext/namei.cde->inode = inode->i_ino;
de401fs/ext/namei.cstruct ext_dir_entry * de;
de403fs/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)))
de559fs/ext/namei.cde->inode = 0;
de560fs/ext/namei.cde->name_len = 0;
de561fs/ext/namei.cext_merge_entries (de, pde, nde);
de581fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de585fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de588fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de602fs/ext/namei.cde->inode = 0;
de603fs/ext/namei.cde->name_len = 0;
de604fs/ext/namei.cext_merge_entries (de, pde, nde);
de621fs/ext/namei.cstruct ext_dir_entry * de;
de649fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de658fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de666fs/ext/namei.cde->inode = inode->i_ino;
de676fs/ext/namei.cstruct ext_dir_entry * de;
de689fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de696fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de702fs/ext/namei.cde->inode = oldinode->i_ino;
de69fs/ext2/dir.cstruct ext2_dir_entry * de, struct buffer_head * bh,
de74fs/ext2/dir.cif (de->rec_len < EXT2_DIR_REC_LEN(1))
de76fs/ext2/dir.celse if (de->rec_len % 4 != 0)
de78fs/ext2/dir.celse if (de->rec_len < EXT2_DIR_REC_LEN(de->name_len))
de80fs/ext2/dir.celse if (((char *) de - bh->b_data) + de->rec_len >
de88fs/ext2/dir.coffset, de->inode, de->rec_len,  de->name_len);
de98fs/ext2/dir.cstruct ext2_dir_entry * de;
de111fs/ext2/dir.cde = (struct ext2_dir_entry *) (offset + bh->b_data);
de113fs/ext2/dir.cif (! ext2_check_dir_entry ("ext2_readdir", inode, de,
de118fs/ext2/dir.coffset += de->rec_len;
de119fs/ext2/dir.cfilp->f_pos += de->rec_len;
de120fs/ext2/dir.cif (de->inode) {
de121fs/ext2/dir.cmemcpy_tofs (dirent->d_name, de->name,
de122fs/ext2/dir.cde->name_len);
de123fs/ext2/dir.cput_fs_long (de->inode, &dirent->d_ino);
de124fs/ext2/dir.cput_fs_byte (0, de->name_len + dirent->d_name);
de125fs/ext2/dir.cput_fs_word (de->name_len, &dirent->d_reclen);
de128fs/ext2/dir.cde->name, de->name_len,
de129fs/ext2/dir.cde->inode);
de131fs/ext2/dir.ci = de->name_len;
de135fs/ext2/dir.cde = (struct ext2_dir_entry *) ((char *) de +
de136fs/ext2/dir.cde->rec_len);
de37fs/ext2/namei.cstruct ext2_dir_entry * de)
de41fs/ext2/namei.cif (!de || !de->inode || len > EXT2_NAME_LEN)
de44fs/ext2/namei.cif (!len && de->name_len == 1 && (de->name[0] == '.') &&
de45fs/ext2/namei.c(de->name[1] == '\0'))
de47fs/ext2/namei.cif (len != de->name_len)
de53fs/ext2/namei.c:"S" ((long) name), "D" ((long) de->name), "c" (len)
de77fs/ext2/namei.cstruct ext2_dir_entry * de;
de98fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de100fs/ext2/namei.cif (!bh || (char *)de >= sb->s_blocksize + bh->b_data) {
de107fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de111fs/ext2/namei.cif (! ext2_check_dir_entry ("ext2_find_entry", dir, de, bh,
de116fs/ext2/namei.cif (ext2_match (namelen, name, de)) {
de117fs/ext2/namei.c*res_dir = de;
de120fs/ext2/namei.coffset += de->rec_len;
de122fs/ext2/namei.c*prev_dir = de;
de123fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de133fs/ext2/namei.cstruct ext2_dir_entry * de;
de146fs/ext2/namei.cif (!(bh = ext2_find_entry (dir, name, len, &de, NULL))) {
de150fs/ext2/namei.cino = de->inode;
de152fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name,
de153fs/ext2/namei.cde->name_len, ino);
de186fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de208fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de211fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
de221fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de222fs/ext2/namei.cde->inode = 0;
de223fs/ext2/namei.cde->rec_len = sb->s_blocksize;
de231fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de234fs/ext2/namei.cif (! ext2_check_dir_entry ("ext2_add_entry", dir, de, bh,
de240fs/ext2/namei.cif (de->inode) {
de241fs/ext2/namei.cif (ext2_match (namelen, name, de)) {
de247fs/ext2/namei.cif ((!de->inode && de->rec_len >= rec_len) ||
de248fs/ext2/namei.c(de->rec_len >= EXT2_DIR_REC_LEN(de->name_len) + rec_len)) {
de249fs/ext2/namei.coffset += de->rec_len;
de250fs/ext2/namei.cif (de->inode) {
de251fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de +
de252fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len));
de253fs/ext2/namei.cde1->rec_len = de->rec_len -
de254fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len);
de255fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de256fs/ext2/namei.cde = de1;
de258fs/ext2/namei.cde->inode = 0;
de259fs/ext2/namei.cde->name_len = namelen;
de261fs/ext2/namei.cde->name[i] = name [i];
de264fs/ext2/namei.c*res_dir = de;
de267fs/ext2/namei.coffset += de->rec_len;
de268fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de292fs/ext2/namei.cstruct ext2_dir_entry * de;
de306fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de314fs/ext2/namei.cde->inode = inode->i_ino;
de316fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de317fs/ext2/namei.cde->inode);
de331fs/ext2/namei.cstruct ext2_dir_entry * de;
de336fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
de369fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de377fs/ext2/namei.cde->inode = inode->i_ino;
de379fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de380fs/ext2/namei.cde->inode);
de393fs/ext2/namei.cstruct ext2_dir_entry * de;
de398fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
de425fs/ext2/namei.cde = (struct ext2_dir_entry *) dir_block->b_data;
de426fs/ext2/namei.cde->inode = inode->i_ino;
de427fs/ext2/namei.cde->name_len = 1;
de428fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de429fs/ext2/namei.cstrcpy (de->name, ".");
de430fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de431fs/ext2/namei.cde->inode = dir->i_ino;
de432fs/ext2/namei.cde->rec_len = inode->i_sb->s_blocksize - EXT2_DIR_REC_LEN(1);
de433fs/ext2/namei.cde->name_len = 2;
de434fs/ext2/namei.cstrcpy (de->name, "..");
de442fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de449fs/ext2/namei.cde->inode = inode->i_ino;
de451fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de452fs/ext2/namei.cde->inode);
de470fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de481fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de482fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de483fs/ext2/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de484fs/ext2/namei.cstrcmp (".", de->name) || strcmp ("..", de1->name)) {
de489fs/ext2/namei.coffset = de->rec_len + de1->rec_len;
de490fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de1 + de1->rec_len);
de492fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
de499fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de501fs/ext2/namei.cif (! ext2_check_dir_entry ("empty_dir", inode, de, bh,
de506fs/ext2/namei.cif (de->inode) {
de510fs/ext2/namei.coffset += de->rec_len;
de511fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de522fs/ext2/namei.cstruct ext2_dir_entry * de, * pde;
de527fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, &pde);
de532fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de556fs/ext2/namei.cext2_dcache_remove (dir->i_dev, dir->i_ino, de->name, de->name_len);
de558fs/ext2/namei.cext2_delete_entry (de, pde);
de578fs/ext2/namei.cstruct ext2_dir_entry * de, * pde;
de584fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, &pde);
de587fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de602fs/ext2/namei.cext2_dcache_remove (dir->i_dev, dir->i_ino, de->name, de->name_len);
de604fs/ext2/namei.cext2_delete_entry (de, pde);
de622fs/ext2/namei.cstruct ext2_dir_entry * de;
de668fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
de677fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de685fs/ext2/namei.cde->inode = inode->i_ino;
de687fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de688fs/ext2/namei.cde->inode);
de700fs/ext2/namei.cstruct ext2_dir_entry * de;
de714fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de, NULL);
de721fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de727fs/ext2/namei.cde->inode = oldinode->i_ino;
de729fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de730fs/ext2/namei.cde->inode);
de74fs/isofs/dir.cstruct iso_directory_record * de;
de88fs/isofs/dir.cde = (struct iso_directory_record *) (offset + bh->b_data);
de94fs/isofs/dir.cif (*((char*) de) == 0)  {
de109fs/isofs/dir.coffset += *((unsigned char*) de);
de110fs/isofs/dir.cfilp->f_pos += *((unsigned char*) de);
de114fs/isofs/dir.cde = (struct iso_directory_record *) (old_offset + cpnt);
de127fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 0) {
de135fs/isofs/dir.celse if (de->name_len[0] == 1 && de->name[0] == 1) {
de149fs/isofs/dir.cfind_rock_ridge_relocation(de, inode));
de161fs/isofs/dir.cdlen = de->name_len[0];
de162fs/isofs/dir.cdpnt = de->name;
de164fs/isofs/dir.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, inode);
de180fs/isofs/dir.cif (c == ';' && i == dlen-2 && de->name[i+1] == '1') 
de451fs/isofs/inode.cstruct iso_directory_record * de;
de458fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
de460fs/isofs/inode.cif (*((char*) de) == 0) 
de466fs/isofs/inode.coffset += *((unsigned char*) de);
de475fs/isofs/inode.cif (de->name_len[0] == 1 && de->name[0] == 1) 
de477fs/isofs/inode.cparent_dir = find_rock_ridge_relocation(de, parent);
de497fs/isofs/inode.cde = (struct iso_directory_record *) (offset + bh->b_data);
de503fs/isofs/inode.cif (*((char*) de) == 0) 
de519fs/isofs/inode.coffset += *((unsigned char*) de);
de524fs/isofs/inode.cde = (struct iso_directory_record *) (old_offset + cpnt);
de534fs/isofs/inode.cif (find_rock_ridge_relocation(de, parent) == extent){
de42fs/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;
de89fs/isofs/namei.cde = (struct iso_directory_record *) (offset + bh->b_data);
de96fs/isofs/namei.cif (*((unsigned char*) de) == 0) {
de107fs/isofs/namei.coffset += *((unsigned char*) de);
de108fs/isofs/namei.cf_pos += *((unsigned char*) de);
de116fs/isofs/namei.cde = (struct iso_directory_record *) (old_offset + cpnt);
de127fs/isofs/namei.cif (de->name[0]==0 && de->name_len[0]==1) {
de134fs/isofs/namei.cif (de->name[0]==1 && de->name_len[0]==1) {
de145fs/isofs/namei.cdlen = de->name_len[0];
de146fs/isofs/namei.cdpnt = de->name;
de148fs/isofs/namei.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir);
de161fs/isofs/namei.cde->name[i] = c;
de176fs/isofs/namei.cfind_rock_ridge_relocation(de,dir));
de80fs/isofs/rock.cint find_rock_ridge_relocation(struct iso_directory_record * de, 
de92fs/isofs/rock.cif (de->name[0]==1 && de->name_len[0]==1) flag = 1;
de94fs/isofs/rock.cretval = isonum_733 (de->extent);
de98fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de153fs/isofs/rock.cint get_rock_ridge_filename(struct iso_directory_record * de,
de164fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de236fs/isofs/rock.cint parse_rock_ridge_inode(struct iso_directory_record * de,
de244fs/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);
de82fs/minix/dir.cif (de->inode) {
de84fs/minix/dir.cif ((c = de->name[i]) != 0)
de89fs/minix/dir.cput_fs_long(de->inode,&dirent->d_ino);
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;
de190fs/minix/namei.cif (de->inode) {
de191fs/minix/namei.cif (namecompare(namelen, info->s_namelen, name, de->name)) {
de198fs/minix/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de200fs/minix/namei.c*res_dir = de;
de220fs/minix/namei.cstruct minix_dir_entry * de;
de233fs/minix/namei.cerror = minix_add_entry(dir,name,len, &bh ,&de);
de241fs/minix/namei.cde->inode = inode->i_ino;
de254fs/minix/namei.cstruct minix_dir_entry * de;
de258fs/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);
de346fs/minix/namei.cde = (struct minix_dir_entry *) dir_block->b_data;
de347fs/minix/namei.cde->inode=inode->i_ino;
de348fs/minix/namei.cstrcpy(de->name,".");
de349fs/minix/namei.cde = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize);
de350fs/minix/namei.cde->inode = dir->i_ino;
de351fs/minix/namei.cstrcpy(de->name,"..");
de359fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de366fs/minix/namei.cde->inode = inode->i_ino;
de383fs/minix/namei.cstruct minix_dir_entry * de;
de399fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
de400fs/minix/namei.cif (!de->inode || strcmp(de->name,"."))
de402fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize);
de403fs/minix/namei.cif (!de->inode || strcmp(de->name,".."))
de413fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
de415fs/minix/namei.cif (de->inode) {
de439fs/minix/namei.cstruct minix_dir_entry * de;
de442fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de447fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de470fs/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)))
de500fs/minix/namei.cif (de->inode != inode->i_ino) {
de519fs/minix/namei.cde->inode = 0;
de536fs/minix/namei.cstruct minix_dir_entry * de;
de564fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de573fs/minix/namei.ci = minix_add_entry(dir, name, len, &bh, &de);
de581fs/minix/namei.cde->inode = inode->i_ino;
de592fs/minix/namei.cstruct minix_dir_entry * de;
de605fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de612fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de618fs/minix/namei.cde->inode = oldinode->i_ino;
de63fs/msdos/dir.cstruct msdos_dir_entry *de;
de81fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
de82fs/msdos/dir.cif (!IS_FREE(de->name) && !(de->attr & ATTR_VOLUME)) {
de84fs/msdos/dir.cif (!(c = de->name[i])) break;
de93fs/msdos/dir.cif (!(c = de->ext[i2])) break;
de100fs/msdos/dir.cif (!strcmp(de->name,MSDOS_DOT))
de102fs/msdos/dir.celse if (!strcmp(de->name,MSDOS_DOTDOT))
de268fs/msdos/misc.cstruct msdos_dir_entry **de)
de286fs/msdos/misc.c*de = (struct msdos_dir_entry *) (data+(offset &
de94fs/msdos/namei.cstruct buffer_head **bh,struct msdos_dir_entry **de,int *ino)
de101fs/msdos/namei.creturn msdos_scan(dir,msdos_name,bh,de,ino);
de109fs/msdos/namei.cstruct msdos_dir_entry *de;
de130fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) {
de165fs/msdos/namei.cstruct msdos_dir_entry *de;
de168fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) {
de172fs/msdos/namei.cif ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res;
de174fs/msdos/namei.cmemcpy(de->name,name,MSDOS_NAME);
de175fs/msdos/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de176fs/msdos/namei.cde->start = 0;
de177fs/msdos/namei.cdate_unix2dos(CURRENT_TIME,&de->time,&de->date);
de178fs/msdos/namei.cde->size = 0;
de195fs/msdos/namei.cstruct msdos_dir_entry *de;
de206fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de242fs/msdos/namei.cstruct msdos_dir_entry *de;
de253fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de300fs/msdos/namei.cstruct msdos_dir_entry *de;
de307fs/msdos/namei.cwhile (msdos_get_entry(dir,&pos,&bh,&de) > -1)
de308fs/msdos/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de309fs/msdos/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de325fs/msdos/namei.cstruct msdos_dir_entry *de;
de333fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
de347fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de362fs/msdos/namei.cstruct msdos_dir_entry *de;
de367fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
de380fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de100fs/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)
de74fs/proc/base.cif (!de || !de->low_ino)
de77fs/proc/base.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de79fs/proc/base.cif (de->namelen != len)
de85fs/proc/base.c:"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len)
de134fs/proc/base.cstruct proc_dir_entry * de;
de148fs/proc/base.cde = base_dir + filp->f_pos;
de150fs/proc/base.ci = de->namelen;
de151fs/proc/base.cino = de->low_ino;
de159fs/proc/base.cput_fs_byte(de->name[i], i+dirent->d_name);
de135fs/proc/root.cstruct proc_dir_entry * de = root_dir + nr;
de138fs/proc/root.ci = de->namelen;
de139fs/proc/root.cput_fs_long(de->low_ino, &dirent->d_ino);
de144fs/proc/root.cput_fs_byte(de->name[i], i+dirent->d_name);
de70fs/xiafs/dir.cstruct xiafs_direct * de;
de83fs/xiafs/dir.cde = (struct xiafs_direct *) (offset + bh->b_data);
de85fs/xiafs/dir.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de86fs/xiafs/dir.cde->d_rec_len < 12 || 
de87fs/xiafs/dir.c(char *)de+de->d_rec_len > XIAFS_ZSIZE(inode->i_sb)+bh->b_data ||
de88fs/xiafs/dir.cde->d_name_len < 1 || de->d_name_len + 8 > de->d_rec_len ||
de89fs/xiafs/dir.cde->d_name_len > _XIAFS_NAME_LEN ||
de90fs/xiafs/dir.cde->d_name[de->d_name_len] ) {
de95fs/xiafs/dir.coffset += de->d_rec_len;
de96fs/xiafs/dir.cfilp->f_pos += de->d_rec_len;
de97fs/xiafs/dir.cif (de->d_ino) {
de98fs/xiafs/dir.cfor (i = 0; i < de->d_name_len ; i++)
de99fs/xiafs/dir.cput_fs_byte(de->d_name[i],i+dirent->d_name);
de101fs/xiafs/dir.cput_fs_long(de->d_ino,&dirent->d_ino);
de110fs/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) {
de217fs/xiafs/namei.cmemcpy(de->d_name, name, namelen);
de218fs/xiafs/namei.cde->d_name[namelen]=0;
de219fs/xiafs/namei.cde->d_name_len=namelen;
de221fs/xiafs/namei.c*res_dir = de;
de226fs/xiafs/namei.coffset+=de->d_rec_len;
de227fs/xiafs/namei.cde_pre=de;
de228fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de245fs/xiafs/namei.cstruct xiafs_direct * de;
de258fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de266fs/xiafs/namei.cde->d_ino = inode->i_ino;
de278fs/xiafs/namei.cstruct xiafs_direct * de;
de282fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de315fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de323fs/xiafs/namei.cde->d_ino = inode->i_ino;
de335fs/xiafs/namei.cstruct xiafs_direct * de;
de337fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len,&de, NULL);
de363fs/xiafs/namei.cde = (struct xiafs_direct *) dir_block->b_data;
de364fs/xiafs/namei.cde->d_ino=inode->i_ino;
de365fs/xiafs/namei.cstrcpy(de->d_name,".");
de366fs/xiafs/namei.cde->d_name_len=1;
de367fs/xiafs/namei.cde->d_rec_len=12;
de368fs/xiafs/namei.cde =(struct xiafs_direct *)(12 + dir_block->b_data);
de369fs/xiafs/namei.cde->d_ino = dir->i_ino;
de370fs/xiafs/namei.cstrcpy(de->d_name,"..");
de371fs/xiafs/namei.cde->d_name_len=2;
de372fs/xiafs/namei.cde->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12;
de380fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de387fs/xiafs/namei.cde->d_ino = inode->i_ino;
de404fs/xiafs/namei.cstruct xiafs_direct * de;
de419fs/xiafs/namei.cde=(struct xiafs_direct *)bh->b_data;
de420fs/xiafs/namei.cif (de->d_ino != inode->i_ino || strcmp(".", de->d_name) ||
de421fs/xiafs/namei.cde->d_rec_len != 12 ) {
de426fs/xiafs/namei.cde=(struct xiafs_direct *)(12 + bh->b_data);
de427fs/xiafs/namei.cif (!de->d_ino || strcmp("..", de->d_name)) {
de432fs/xiafs/namei.coffset=de->d_rec_len+12;
de439fs/xiafs/namei.cde=(struct xiafs_direct *)(bh->b_data+offset);
de440fs/xiafs/namei.cif (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes ||
de441fs/xiafs/namei.cde->d_rec_len < 12 || 
de442fs/xiafs/namei.c(char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) ||
de443fs/xiafs/namei.cde->d_name_len + 8 > de->d_rec_len ||
de444fs/xiafs/namei.cde->d_name[de->d_name_len]) {
de449fs/xiafs/namei.cif (de->d_ino) {
de453fs/xiafs/namei.coffset+=de->d_rec_len;
de460fs/xiafs/namei.cstatic void xiafs_rm_entry(struct xiafs_direct *de, struct xiafs_direct * de_pre)
de462fs/xiafs/namei.cif (de==de_pre) {
de463fs/xiafs/namei.cde->d_ino=0;
de466fs/xiafs/namei.cwhile (de_pre->d_rec_len+(u_char *)de_pre < (u_char *)de) {
de473fs/xiafs/namei.cif (de_pre->d_rec_len+(u_char *)de_pre > (u_char *)de) {
de477fs/xiafs/namei.cde_pre->d_rec_len+=de->d_rec_len;
de485fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de488fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de493fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de516fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de536fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de541fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de544fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de546fs/xiafs/namei.cif (de->d_ino != inode->i_ino) {
de564fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de581fs/xiafs/namei.cstruct xiafs_direct * de;
de587fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len, &de, NULL);
de614fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de622fs/xiafs/namei.cde->d_ino = inode->i_ino;
de633fs/xiafs/namei.cstruct xiafs_direct * de;
de646fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, NULL);
de653fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de659fs/xiafs/namei.cde->d_ino = oldinode->i_ino;
de137include/linux/msdos_fs.hstruct msdos_dir_entry **de);