Lines Matching defs:rec_len
116 unsigned offs, rec_len;
128 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) {
130 rec_len = ext2_rec_len_from_disk(p->rec_len);
132 if (rec_len < EXT2_DIR_REC_LEN(1))
134 if (rec_len & 3)
136 if (rec_len < EXT2_DIR_REC_LEN(p->name_len))
138 if (((offs + rec_len - 1) ^ offs) & ~(chunk_size-1))
158 error = "rec_len is smaller than minimal";
164 error = "rec_len is too small for name_len";
174 "offset=%lu, inode=%lu, rec_len=%d, name_len=%d",
177 rec_len, p->name_len);
233 ext2_rec_len_from_disk(p->rec_len));
242 if (p->rec_len == 0)
323 if (de->rec_len == 0) {
345 filp->f_pos += ext2_rec_len_from_disk(de->rec_len);
391 if (de->rec_len == 0) {
462 unsigned len = ext2_rec_len_from_disk(de->rec_len);
488 unsigned short rec_len, name_len;
518 rec_len = chunk_size;
519 de->rec_len = ext2_rec_len_to_disk(chunk_size);
523 if (de->rec_len == 0) {
533 rec_len = ext2_rec_len_from_disk(de->rec_len);
534 if (!de->inode && rec_len >= reclen)
536 if (rec_len >= name_len + reclen)
538 de = (ext2_dirent *) ((char *) de + rec_len);
549 err = ext2_prepare_chunk(page, pos, rec_len);
554 de1->rec_len = ext2_rec_len_to_disk(rec_len - name_len);
555 de->rec_len = ext2_rec_len_to_disk(name_len);
562 err = ext2_commit_chunk(page, pos, rec_len);
586 ext2_rec_len_from_disk(dir->rec_len);
593 if (de->rec_len == 0) {
609 pde->rec_len = ext2_rec_len_to_disk(to - from);
643 de->rec_len = ext2_rec_len_to_disk(EXT2_DIR_REC_LEN(1));
650 de->rec_len = ext2_rec_len_to_disk(chunk_size - EXT2_DIR_REC_LEN(1));
685 if (de->rec_len == 0) {