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;
de262fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de265fs/ext/namei.cde->inode=0;
de266fs/ext/namei.cde->rec_len = rec_len;
de267fs/ext/namei.cdir->i_size += de->rec_len;
de273fs/ext/namei.cif (de->rec_len < 8 || de->rec_len % 4 != 0 ||
de274fs/ext/namei.cde->rec_len < de->name_len + 8 ||
de275fs/ext/namei.c(((char *) de) + de->rec_len-1 >= BLOCK_SIZE+bh->b_data)) {
de278fs/ext/namei.cdir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len);
de282fs/ext/namei.cif (!de->inode && de->rec_len >= rec_len) {
de283fs/ext/namei.cif (de->rec_len > rec_len
de284fs/ext/namei.c&& de->rec_len - rec_len >= EXT_DIR_MIN_SIZE) {
de289fs/ext/namei.cde1 = (struct ext_dir_entry *) ((char *) de + rec_len);
de291fs/ext/namei.cde1->rec_len = de->rec_len - rec_len;
de293fs/ext/namei.cde->rec_len = rec_len;
de296fs/ext/namei.cde->name_len = namelen;
de298fs/ext/namei.cde->name[i] = name[i];
de300fs/ext/namei.c*res_dir = de;
de303fs/ext/namei.coffset += de->rec_len;
de304fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de315fs/ext/namei.cstruct ext_dir_entry * de;
de328fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de336fs/ext/namei.cde->inode = inode->i_ino;
de348fs/ext/namei.cstruct ext_dir_entry * de;
de352fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de387fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de395fs/ext/namei.cde->inode = inode->i_ino;
de407fs/ext/namei.cstruct ext_dir_entry * de;
de409fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de437fs/ext/namei.cde = (struct ext_dir_entry *) dir_block->b_data;
de438fs/ext/namei.cde->inode=inode->i_ino;
de439fs/ext/namei.cde->rec_len=16;
de440fs/ext/namei.cde->name_len=1;
de441fs/ext/namei.cstrcpy(de->name,".");
de442fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de443fs/ext/namei.cde->inode = dir->i_ino;
de444fs/ext/namei.cde->rec_len=16;
de445fs/ext/namei.cde->name_len=2;
de446fs/ext/namei.cstrcpy(de->name,"..");
de454fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de461fs/ext/namei.cde->inode = inode->i_ino;
de478fs/ext/namei.cstruct ext_dir_entry * de, * de1;
de484fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de485fs/ext/namei.cde1 = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de486fs/ext/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de487fs/ext/namei.cstrcmp(".",de->name) || strcmp("..",de1->name)) {
de491fs/ext/namei.coffset = de->rec_len + de1->rec_len;
de492fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de1 + de1->rec_len);
de494fs/ext/namei.cif ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) {
de501fs/ext/namei.cde = (struct ext_dir_entry *) bh->b_data;
de503fs/ext/namei.cif (de->rec_len < 8 || de->rec_len %4 != 0 ||
de504fs/ext/namei.cde->rec_len < de->name_len + 8) {
de507fs/ext/namei.cinode->i_dev, inode->i_ino, offset, de->rec_len, de->name_len);
de511fs/ext/namei.cif (de->inode) {
de515fs/ext/namei.coffset += de->rec_len;
de516fs/ext/namei.cde = (struct ext_dir_entry *) ((char *) de + de->rec_len);
de522fs/ext/namei.cstatic inline void ext_merge_entries (struct ext_dir_entry * de,
de526fs/ext/namei.cde->rec_len += nde->rec_len;
de528fs/ext/namei.cpde->rec_len += de->rec_len;
de536fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de539fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de544fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de567fs/ext/namei.cde->inode = 0;
de568fs/ext/namei.cde->name_len = 0;
de569fs/ext/namei.cext_merge_entries (de, pde, nde);
de589fs/ext/namei.cstruct ext_dir_entry * de, * pde, * nde;
de593fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,&pde,&nde);
de596fs/ext/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de610fs/ext/namei.cde->inode = 0;
de611fs/ext/namei.cde->name_len = 0;
de612fs/ext/namei.cext_merge_entries (de, pde, nde);
de629fs/ext/namei.cstruct ext_dir_entry * de;
de657fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de666fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de674fs/ext/namei.cde->inode = inode->i_ino;
de684fs/ext/namei.cstruct ext_dir_entry * de;
de697fs/ext/namei.cbh = ext_find_entry(dir,name,len,&de,NULL,NULL);
de704fs/ext/namei.cbh = ext_add_entry(dir,name,len,&de);
de710fs/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 (dir && ((char *) de - bh->b_data) + de->rec_len >
de87fs/ext2/dir.cerror_msg, offset, de->inode, de->rec_len,
de88fs/ext2/dir.cde->name_len);
de98fs/ext2/dir.cstruct ext2_dir_entry * de;
de113fs/ext2/dir.cde = (struct ext2_dir_entry *) (offset + bh->b_data);
de115fs/ext2/dir.cif (! ext2_check_dir_entry ("ext2_readdir", inode, de,
de120fs/ext2/dir.coffset += de->rec_len;
de121fs/ext2/dir.cfilp->f_pos += de->rec_len;
de122fs/ext2/dir.cif (de->inode) {
de123fs/ext2/dir.cmemcpy_tofs (dirent->d_name, de->name,
de124fs/ext2/dir.cde->name_len);
de125fs/ext2/dir.cput_fs_long (de->inode, &dirent->d_ino);
de126fs/ext2/dir.cput_fs_byte (0, de->name_len + dirent->d_name);
de127fs/ext2/dir.cput_fs_word (de->name_len, &dirent->d_reclen);
de130fs/ext2/dir.cde->name, de->name_len,
de131fs/ext2/dir.cde->inode);
de133fs/ext2/dir.ci = de->name_len;
de141fs/ext2/dir.cde = (struct ext2_dir_entry *) ((char *) de +
de142fs/ext2/dir.cde->rec_len);
de35fs/ext2/namei.cstruct ext2_dir_entry * de)
de39fs/ext2/namei.cif (!de || !de->inode || len > EXT2_NAME_LEN)
de42fs/ext2/namei.cif (!len && de->name_len == 1 && (de->name[0] == '.') &&
de43fs/ext2/namei.c(de->name[1] == '\0'))
de45fs/ext2/namei.cif (len != de->name_len)
de51fs/ext2/namei.c:"S" ((long) name), "D" ((long) de->name), "c" (len)
de71fs/ext2/namei.cstruct ext2_dir_entry * de;
de90fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de92fs/ext2/namei.cif (!bh || (char *)de >= sb->s_blocksize + bh->b_data) {
de99fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de101fs/ext2/namei.cif (! ext2_check_dir_entry ("ext2_find_entry", dir, de, bh,
de106fs/ext2/namei.cif (de->inode != 0 && ext2_match (namelen, name, de)) {
de107fs/ext2/namei.c*res_dir = de;
de110fs/ext2/namei.coffset += de->rec_len;
de111fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de121fs/ext2/namei.cstruct ext2_dir_entry * de;
de134fs/ext2/namei.cif (!(bh = ext2_find_entry (dir, name, len, &de))) {
de138fs/ext2/namei.cino = de->inode;
de140fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name,
de141fs/ext2/namei.cde->name_len, ino);
de173fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de202fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de205fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
de219fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de220fs/ext2/namei.cde->inode = 0;
de221fs/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 != 0 && ext2_match (namelen, name, de)) {
de245fs/ext2/namei.cif ((de->inode == 0 && de->rec_len >= rec_len) ||
de246fs/ext2/namei.c(de->rec_len >= EXT2_DIR_REC_LEN(de->name_len) + rec_len)) {
de247fs/ext2/namei.coffset += de->rec_len;
de248fs/ext2/namei.cif (de->inode) {
de249fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de +
de250fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len));
de251fs/ext2/namei.cde1->rec_len = de->rec_len -
de252fs/ext2/namei.cEXT2_DIR_REC_LEN(de->name_len);
de253fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de254fs/ext2/namei.cde = de1;
de256fs/ext2/namei.cde->inode = 0;
de257fs/ext2/namei.cde->name_len = namelen;
de258fs/ext2/namei.cmemcpy (de->name, name, namelen);
de273fs/ext2/namei.c*res_dir = de;
de277fs/ext2/namei.coffset += de->rec_len;
de278fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de291fs/ext2/namei.cstruct ext2_dir_entry * de, * pde;
de296fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de299fs/ext2/namei.cde, bh, i))
de301fs/ext2/namei.cif (de == dir)  {
de308fs/ext2/namei.ci += de->rec_len;
de309fs/ext2/namei.cpde = de;
de310fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de320fs/ext2/namei.cstruct ext2_dir_entry * de;
de334fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de342fs/ext2/namei.cde->inode = inode->i_ino;
de344fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de345fs/ext2/namei.cde->inode);
de363fs/ext2/namei.cstruct ext2_dir_entry * de;
de368fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de408fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de416fs/ext2/namei.cde->inode = inode->i_ino;
de418fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de419fs/ext2/namei.cde->inode);
de436fs/ext2/namei.cstruct ext2_dir_entry * de;
de441fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de470fs/ext2/namei.cde = (struct ext2_dir_entry *) dir_block->b_data;
de471fs/ext2/namei.cde->inode = inode->i_ino;
de472fs/ext2/namei.cde->name_len = 1;
de473fs/ext2/namei.cde->rec_len = EXT2_DIR_REC_LEN(de->name_len);
de474fs/ext2/namei.cstrcpy (de->name, ".");
de475fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de476fs/ext2/namei.cde->inode = dir->i_ino;
de477fs/ext2/namei.cde->rec_len = inode->i_sb->s_blocksize - EXT2_DIR_REC_LEN(1);
de478fs/ext2/namei.cde->name_len = 2;
de479fs/ext2/namei.cstrcpy (de->name, "..");
de487fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de495fs/ext2/namei.cde->inode = inode->i_ino;
de497fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de498fs/ext2/namei.cde->inode);
de520fs/ext2/namei.cstruct ext2_dir_entry * de, * de1;
de531fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de532fs/ext2/namei.cde1 = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de533fs/ext2/namei.cif (de->inode != inode->i_ino || !de1->inode || 
de534fs/ext2/namei.cstrcmp (".", de->name) || strcmp ("..", de1->name)) {
de539fs/ext2/namei.coffset = de->rec_len + de1->rec_len;
de540fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de1 + de1->rec_len);
de542fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
de549fs/ext2/namei.cde = (struct ext2_dir_entry *) bh->b_data;
de551fs/ext2/namei.cif (! ext2_check_dir_entry ("empty_dir", inode, de, bh,
de556fs/ext2/namei.cif (de->inode) {
de560fs/ext2/namei.coffset += de->rec_len;
de561fs/ext2/namei.cde = (struct ext2_dir_entry *) ((char *) de + de->rec_len);
de572fs/ext2/namei.cstruct ext2_dir_entry * de;
de578fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de583fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de587fs/ext2/namei.cif (de->inode != inode->i_ino) {
de607fs/ext2/namei.cif (de->inode != inode->i_ino) {
de618fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de635fs/ext2/namei.cext2_dcache_remove (dir->i_dev, dir->i_ino, de->name, de->name_len);
de654fs/ext2/namei.cstruct ext2_dir_entry * de;
de661fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de664fs/ext2/namei.cif (!(inode = iget (dir->i_sb, de->inode)))
de669fs/ext2/namei.cif (de->inode != inode->i_ino) {
de686fs/ext2/namei.cretval = ext2_delete_entry (de, bh);
de695fs/ext2/namei.cext2_dcache_remove (dir->i_dev, dir->i_ino, de->name, de->name_len);
de713fs/ext2/namei.cstruct ext2_dir_entry * de;
de759fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de768fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de776fs/ext2/namei.cde->inode = inode->i_ino;
de778fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de779fs/ext2/namei.cde->inode);
de795fs/ext2/namei.cstruct ext2_dir_entry * de;
de809fs/ext2/namei.cbh = ext2_find_entry (dir, name, len, &de);
de816fs/ext2/namei.cbh = ext2_add_entry (dir, name, len, &de, &err);
de822fs/ext2/namei.cde->inode = oldinode->i_ino;
de824fs/ext2/namei.cext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len,
de825fs/ext2/namei.cde->inode);
de264fs/hpfs/hpfs.hstatic inline dnode_secno de_down_pointer (struct hpfs_dirent *de)
de266fs/hpfs/hpfs.hreturn *(dnode_secno *) ((void *) de + de->length - 4);
de285fs/hpfs/hpfs.hstatic inline struct hpfs_dirent *de_next_de (struct hpfs_dirent *de)
de287fs/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);
de771fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de777fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de782fs/hpfs/hpfs_fs.cfor (; de < de_end; de = de_next_de(de)) {
de783fs/hpfs/hpfs_fs.cif (de->down)
de784fs/hpfs/hpfs_fs.ccount_dnodes(inode, de_down_pointer(de),
de786fs/hpfs/hpfs_fs.cif (de->directory && !de->first)
de788fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1104fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1122fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh);
de1124fs/hpfs/hpfs_fs.cde = map_dirent(dir,
de1128fs/hpfs/hpfs_fs.cde = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh);
de1134fs/hpfs/hpfs_fs.cif (!de)
de1141fs/hpfs/hpfs_fs.cif (de->directory)
de1142fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1144fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1159fs/hpfs/hpfs_fs.cinode->i_atime = local_to_gmt(de->read_date);
de1160fs/hpfs/hpfs_fs.cinode->i_mtime = local_to_gmt(de->write_date);
de1161fs/hpfs/hpfs_fs.cinode->i_ctime = local_to_gmt(de->creation_date);
de1162fs/hpfs/hpfs_fs.cif (de->read_only)
de1164fs/hpfs/hpfs_fs.cif (!de->directory) {
de1165fs/hpfs/hpfs_fs.cinode->i_size = de->file_size;
de1231fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1245fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1251fs/hpfs/hpfs_fs.cfor ( ; de < de_end; de = de_next_de(de)) {
de1256fs/hpfs/hpfs_fs.cl = len < de->namelen ? len : de->namelen;
de1257fs/hpfs/hpfs_fs.ct = memcasecmp(name, de->name, l);
de1263fs/hpfs/hpfs_fs.ct = len - de->namelen;
de1266fs/hpfs/hpfs_fs.creturn de;
de1276fs/hpfs/hpfs_fs.cif (de->down) {
de1277fs/hpfs/hpfs_fs.cdnode_secno sub_dno = de_down_pointer(de);
de1292fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de1332fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1359fs/hpfs/hpfs_fs.cde = map_pos_dirent(inode, &filp->f_pos, &qbh);
de1360fs/hpfs/hpfs_fs.cif (!de) {
de1365fs/hpfs/hpfs_fs.cnamelen = de->namelen;
de1366fs/hpfs/hpfs_fs.cif (de->directory)
de1367fs/hpfs/hpfs_fs.cino = dir_ino(de->fnode);
de1369fs/hpfs/hpfs_fs.cino = file_ino(de->fnode);
de1370fs/hpfs/hpfs_fs.cwrite_one_dirent(dirent, de->name, namelen, ino, lc);
de1416fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1439fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, qbh);
de1445fs/hpfs/hpfs_fs.cif (!de) {
de1456fs/hpfs/hpfs_fs.cif (de->down)
de1465fs/hpfs/hpfs_fs.cif (de->first || de->last) {
de1470fs/hpfs/hpfs_fs.creturn de;
de1479fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de;
de1515fs/hpfs/hpfs_fs.cde = map_nth_dirent(inode->i_dev, dno, r, &qbh);
de1516fs/hpfs/hpfs_fs.cif (!de || !de->down)
de1522fs/hpfs/hpfs_fs.cdno = de_down_pointer(de);
de1543fs/hpfs/hpfs_fs.cstruct hpfs_dirent *de, *de_end;
de1546fs/hpfs/hpfs_fs.cde = dnode_first_de(dnode);
de1549fs/hpfs/hpfs_fs.cfor (i = 1; de < de_end; i++, de = de_next_de(de)) {
de1551fs/hpfs/hpfs_fs.creturn de;
de1552fs/hpfs/hpfs_fs.cif (de->last || de->length == 0)
de77fs/isofs/dir.cstruct iso_directory_record * de;
de92fs/isofs/dir.cde = (struct iso_directory_record *) (bh->b_data + offset);
de99fs/isofs/dir.cif (*((unsigned char *) de) == 0)  {
de117fs/isofs/dir.coffset += *((unsigned char *) de);
de118fs/isofs/dir.cfilp->f_pos += *((unsigned char *) de);
de123fs/isofs/dir.cde = (struct iso_directory_record *)
de140fs/isofs/dir.cif (de->name_len[0] == 1 && de->name[0] == 0) {
de148fs/isofs/dir.celse if (de->name_len[0] == 1 && de->name[0] == 1) {
de163fs/isofs/dir.cfind_rock_ridge_relocation(de, inode));
de175fs/isofs/dir.cdlen = de->name_len[0];
de176fs/isofs/dir.cdpnt = de->name;
de178fs/isofs/dir.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, inode);
de194fs/isofs/dir.cif (c == ';' && i == dlen-2 && de->name[i+1] == '1') 
de513fs/isofs/inode.cstruct iso_directory_record * de;
de520fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de521fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de527fs/isofs/inode.coffset += *((unsigned char *) de);
de537fs/isofs/inode.cif (de->name_len[0] == 1 && de->name[0] == 1) 
de539fs/isofs/inode.cparent_dir = find_rock_ridge_relocation(de, parent);
de560fs/isofs/inode.cde = (struct iso_directory_record *) (bh->b_data + offset);
de567fs/isofs/inode.cif (*((unsigned char *) de) == 0) 
de584fs/isofs/inode.coffset += *((unsigned char *) de);
de591fs/isofs/inode.cde = (struct iso_directory_record *)
de603fs/isofs/inode.cif (find_rock_ridge_relocation(de, parent) == extent){
de43fs/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.cde = (struct iso_directory_record *)
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) {
de155fs/isofs/namei.cdlen = de->name_len[0];
de156fs/isofs/namei.cdpnt = de->name;
de158fs/isofs/namei.crrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir);
de171fs/isofs/namei.cde->name[i] = c;
de191fs/isofs/namei.cfind_rock_ridge_relocation(de,dir));
de83fs/isofs/rock.cint find_rock_ridge_relocation(struct iso_directory_record * de, 
de95fs/isofs/rock.cif (de->name[0]==1 && de->name_len[0]==1) flag = 1;
de97fs/isofs/rock.cretval = isonum_733 (de->extent);
de101fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de156fs/isofs/rock.cint get_rock_ridge_filename(struct iso_directory_record * de,
de167fs/isofs/rock.cSETUP_ROCK_RIDGE(de, chr, len);
de239fs/isofs/rock.cint parse_rock_ridge_inode(struct iso_directory_record * de,
de247fs/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;
de189fs/minix/namei.cif (de->inode) {
de190fs/minix/namei.cif (namecompare(namelen, info->s_namelen, name, de->name)) {
de197fs/minix/namei.cde->name[i] = (i < namelen) ? name[i] : 0;
de199fs/minix/namei.c*res_dir = de;
de219fs/minix/namei.cstruct minix_dir_entry * de;
de232fs/minix/namei.cerror = minix_add_entry(dir,name,len, &bh ,&de);
de240fs/minix/namei.cde->inode = inode->i_ino;
de253fs/minix/namei.cstruct minix_dir_entry * de;
de257fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de289fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de297fs/minix/namei.cde->inode = inode->i_ino;
de310fs/minix/namei.cstruct minix_dir_entry * de;
de318fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de343fs/minix/namei.cde = (struct minix_dir_entry *) dir_block->b_data;
de344fs/minix/namei.cde->inode=inode->i_ino;
de345fs/minix/namei.cstrcpy(de->name,".");
de346fs/minix/namei.cde = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize);
de347fs/minix/namei.cde->inode = dir->i_ino;
de348fs/minix/namei.cstrcpy(de->name,"..");
de356fs/minix/namei.cerror = minix_add_entry(dir, name, len, &bh, &de);
de363fs/minix/namei.cde->inode = inode->i_ino;
de380fs/minix/namei.cstruct minix_dir_entry * de;
de396fs/minix/namei.cde = (struct minix_dir_entry *) bh->b_data;
de397fs/minix/namei.cif (!de->inode || strcmp(de->name,"."))
de399fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize);
de400fs/minix/namei.cif (!de->inode || strcmp(de->name,".."))
de410fs/minix/namei.cde = (struct minix_dir_entry *) (bh->b_data + offset);
de412fs/minix/namei.cif (de->inode) {
de436fs/minix/namei.cstruct minix_dir_entry * de;
de439fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de444fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de461fs/minix/namei.cif (de->inode != inode->i_ino) {
de471fs/minix/namei.cde->inode = 0;
de491fs/minix/namei.cstruct minix_dir_entry * de;
de496fs/minix/namei.cbh = minix_find_entry(dir,name,len,&de);
de499fs/minix/namei.cif (!(inode = iget(dir->i_sb, de->inode)))
de504fs/minix/namei.cif (de->inode != inode->i_ino) {
de515fs/minix/namei.cif (de->inode != inode->i_ino) {
de524fs/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;
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;
de179fs/msdos/namei.cmemcpy(de->name,name,MSDOS_NAME);
de180fs/msdos/namei.cde->attr = is_dir ? ATTR_DIR : ATTR_ARCH;
de181fs/msdos/namei.cde->start = 0;
de182fs/msdos/namei.cdate_unix2dos(dir->i_mtime,&de->time,&de->date);
de183fs/msdos/namei.cde->size = 0;
de200fs/msdos/namei.cstruct msdos_dir_entry *de;
de211fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de247fs/msdos/namei.cstruct msdos_dir_entry *de;
de258fs/msdos/namei.cif (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) {
de305fs/msdos/namei.cstruct msdos_dir_entry *de;
de312fs/msdos/namei.cwhile (msdos_get_entry(dir,&pos,&bh,&de) > -1)
de313fs/msdos/namei.cif (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
de314fs/msdos/namei.cMSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
de330fs/msdos/namei.cstruct msdos_dir_entry *de;
de338fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done;
de352fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de367fs/msdos/namei.cstruct msdos_dir_entry *de;
de372fs/msdos/namei.cif ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0)
de386fs/msdos/namei.cde->name[0] = DELETED_FLAG;
de123fs/pipe.cstatic int pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count)
de71fs/proc/base.cint proc_match(int len,const char * name,struct proc_dir_entry * de)
de75fs/proc/base.cif (!de || !de->low_ino)
de78fs/proc/base.cif (!len && (de->name[0]=='.') && (de->name[1]=='\0'))
de80fs/proc/base.cif (de->namelen != len)
de86fs/proc/base.c:"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len)
de135fs/proc/base.cstruct proc_dir_entry * de;
de149fs/proc/base.cde = base_dir + filp->f_pos;
de151fs/proc/base.ci = de->namelen;
de152fs/proc/base.cino = de->low_ino;
de160fs/proc/base.cput_fs_byte(de->name[i], i+dirent->d_name);
de133fs/proc/net.cstruct proc_dir_entry * de;
de141fs/proc/net.cde = net_dir + filp->f_pos;
de143fs/proc/net.ci = de->namelen;
de144fs/proc/net.cino = de->low_ino;
de150fs/proc/net.cput_fs_byte(de->name[i], i+dirent->d_name);
de142fs/proc/root.cstruct proc_dir_entry * de = root_dir + nr;
de145fs/proc/root.ci = de->namelen;
de146fs/proc/root.cput_fs_long(de->low_ino, &dirent->d_ino);
de151fs/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) {
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)))
de520fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de540fs/xiafs/namei.cstruct xiafs_direct * de, * de_pre;
de545fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, &de_pre);
de548fs/xiafs/namei.cif (!(inode = iget(dir->i_sb, de->d_ino)))
de553fs/xiafs/namei.cif (de->d_ino != inode->i_ino) {
de568fs/xiafs/namei.cxiafs_rm_entry(de, de_pre);
de585fs/xiafs/namei.cstruct xiafs_direct * de;
de591fs/xiafs/namei.cbh = xiafs_find_entry(dir,name,len, &de, NULL);
de618fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de626fs/xiafs/namei.cde->d_ino = inode->i_ino;
de637fs/xiafs/namei.cstruct xiafs_direct * de;
de650fs/xiafs/namei.cbh = xiafs_find_entry(dir, name, len, &de, NULL);
de657fs/xiafs/namei.cbh = xiafs_add_entry(dir, name, len, &de, NULL);
de663fs/xiafs/namei.cde->d_ino = oldinode->i_ino;
de137include/linux/msdos_fs.hstruct msdos_dir_entry **de);