Lines Matching refs:de
39 struct ext3_dir_entry_2 * de, in ext3_check_dir_entry() argument
44 const int rlen = le16_to_cpu(de->rec_len); in ext3_check_dir_entry()
50 else if (rlen < EXT3_DIR_REC_LEN(de->name_len)) in ext3_check_dir_entry()
52 else if (((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize) in ext3_check_dir_entry()
54 else if (le32_to_cpu(de->inode) > in ext3_check_dir_entry()
63 (unsigned long) le32_to_cpu(de->inode), in ext3_check_dir_entry()
64 rlen, de->name_len); in ext3_check_dir_entry()
75 struct ext3_dir_entry_2 * de; in ext3_readdir() local
128 de = (struct ext3_dir_entry_2 *) in ext3_readdir()
136 if (le16_to_cpu(de->rec_len) < in ext3_readdir()
139 i += le16_to_cpu(de->rec_len); in ext3_readdir()
149 de = (struct ext3_dir_entry_2 *) (bh->b_data + offset); in ext3_readdir()
150 if (!ext3_check_dir_entry ("ext3_readdir", inode, de, in ext3_readdir()
159 offset += le16_to_cpu(de->rec_len); in ext3_readdir()
160 if (le32_to_cpu(de->inode)) { in ext3_readdir()
173 && de->file_type < EXT3_FT_MAX) in ext3_readdir()
175 ext3_filetype_table[de->file_type]; in ext3_readdir()
176 error = filldir(dirent, de->name, in ext3_readdir()
177 de->name_len, in ext3_readdir()
179 le32_to_cpu(de->inode), in ext3_readdir()
187 filp->f_pos += le16_to_cpu(de->rec_len); in ext3_readdir()