Lines Matching refs:de
63 struct ext4_dir_entry_2 *de, in __ext4_check_dir_entry() argument
68 const int rlen = ext4_rec_len_from_disk(de->rec_len, in __ext4_check_dir_entry()
75 else if (unlikely(rlen < EXT4_DIR_REC_LEN(de->name_len))) in __ext4_check_dir_entry()
77 else if (unlikely(((char *) de - buf) + rlen > size)) in __ext4_check_dir_entry()
79 else if (unlikely(((char *) de - buf) + rlen > in __ext4_check_dir_entry()
81 ((char *) de - buf) + rlen != size)) { in __ext4_check_dir_entry()
84 else if (unlikely(le32_to_cpu(de->inode) > in __ext4_check_dir_entry()
94 error_msg, offset, le32_to_cpu(de->inode), in __ext4_check_dir_entry()
95 rlen, de->name_len, size); in __ext4_check_dir_entry()
100 error_msg, offset, le32_to_cpu(de->inode), in __ext4_check_dir_entry()
101 rlen, de->name_len, size); in __ext4_check_dir_entry()
110 struct ext4_dir_entry_2 *de; in ext4_readdir() local
217 de = (struct ext4_dir_entry_2 *) in ext4_readdir()
225 if (ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
228 i += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
239 de = (struct ext4_dir_entry_2 *) (bh->b_data + offset); in ext4_readdir()
240 if (ext4_check_dir_entry(inode, file, de, bh, in ext4_readdir()
250 offset += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
252 if (le32_to_cpu(de->inode)) { in ext4_readdir()
254 if (!dir_emit(ctx, de->name, in ext4_readdir()
255 de->name_len, in ext4_readdir()
256 le32_to_cpu(de->inode), in ext4_readdir()
257 get_dtype(sb, de->file_type))) in ext4_readdir()
262 FSTR_INIT(de->name, in ext4_readdir()
263 de->name_len); in ext4_readdir()
274 le32_to_cpu(de->inode), in ext4_readdir()
275 get_dtype(sb, de->file_type))) in ext4_readdir()
279 ctx->pos += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
635 struct ext4_dir_entry_2 *de; in ext4_check_all_de() local
640 de = (struct ext4_dir_entry_2 *)buf; in ext4_check_all_de()
642 while ((char *) de < top) { in ext4_check_all_de()
643 if (ext4_check_dir_entry(dir, NULL, de, bh, in ext4_check_all_de()
646 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
647 de = (struct ext4_dir_entry_2 *)((char *)de + rlen); in ext4_check_all_de()
650 if ((char *) de > top) in ext4_check_all_de()