Lines Matching defs:rec_len
93 unsigned offs, rec_len;
106 for (offs = 0; offs <= limit - EXOFS_DIR_REC_LEN(1); offs += rec_len) {
108 rec_len = le16_to_cpu(p->rec_len);
110 if (rec_len < EXOFS_DIR_REC_LEN(1))
112 if (rec_len & 3)
114 if (rec_len < EXOFS_DIR_REC_LEN(p->name_len))
116 if (((offs + rec_len - 1) ^ offs) & ~(chunk_size-1))
132 error = "rec_len is smaller than minimal";
138 error = "rec_len is too small for name_len";
146 "offset=%lu, inode=%llu, rec_len=%d, name_len=%d",
149 rec_len, p->name_len);
195 return (struct exofs_dir_entry *)((char *)p + le16_to_cpu(p->rec_len));
205 if (p->rec_len == 0)
284 if (de->rec_len == 0) {
307 filp->f_pos += le16_to_cpu(de->rec_len);
344 if (de->rec_len == 0) {
416 unsigned len = le16_to_cpu(de->rec_len);
443 unsigned short rec_len, name_len;
468 rec_len = chunk_size;
469 de->rec_len = cpu_to_le16(chunk_size);
473 if (de->rec_len == 0) {
483 rec_len = le16_to_cpu(de->rec_len);
484 if (!de->inode_no && rec_len >= reclen)
486 if (rec_len >= name_len + reclen)
488 de = (struct exofs_dir_entry *) ((char *) de + rec_len);
500 err = exofs_write_begin(NULL, page->mapping, pos, rec_len, 0,
507 de1->rec_len = cpu_to_le16(rec_len - name_len);
508 de->rec_len = cpu_to_le16(name_len);
515 err = exofs_commit_chunk(page, pos, rec_len);
536 unsigned to = ((char *)dir - kaddr) + le16_to_cpu(dir->rec_len);
543 if (de->rec_len == 0) {
562 pde->rec_len = cpu_to_le16(to - from);
600 de->rec_len = cpu_to_le16(EXOFS_DIR_REC_LEN(1));
607 de->rec_len = cpu_to_le16(chunk_size - EXOFS_DIR_REC_LEN(1));
636 if (de->rec_len == 0) {