Lines Matching defs:rec_len
148 struct buffer_head *bh, u16 rec_len)
158 trailer->db_free_rec_len = cpu_to_le16(rec_len);
313 const int rlen = le16_to_cpu(de->rec_len);
316 error_msg = "rec_len is smaller than minimal";
318 error_msg = "rec_len % 4 != 0";
320 error_msg = "rec_len is too small for name_len";
326 "offset=%lu, inode=%llu, rec_len=%d, name_len=%d\n",
384 de_len = le16_to_cpu(de->rec_len);
1178 le16_add_cpu(&pde->rec_len,
1179 le16_to_cpu(de->rec_len));
1186 i += le16_to_cpu(de->rec_len);
1188 de = (struct ocfs2_dir_entry *)((char *)de + le16_to_cpu(de->rec_len));
1200 hole = le16_to_cpu(de->rec_len);
1202 hole = le16_to_cpu(de->rec_len) -
1227 de_buf += le16_to_cpu(de->rec_len);
1436 le16_to_cpu(de->rec_len) >= new_rec_len)
1444 if (le16_to_cpu(de->rec_len) >= (de_really_used + new_rec_len))
1582 /* Walk dl_leaf_bh to figure out what the new free rec_len is. */
1612 unsigned short rec_len;
1651 rec_len = OCFS2_DIR_REC_LEN(namelen);
1679 if (ocfs2_dirent_would_fit(de, rec_len)) {
1710 offset += le16_to_cpu(de->rec_len);
1714 de1->rec_len =
1715 cpu_to_le16(le16_to_cpu(de->rec_len) -
1717 de->rec_len = cpu_to_le16(OCFS2_DIR_REC_LEN(de->name_len));
1738 offset += le16_to_cpu(de->rec_len);
1739 de = (struct ocfs2_dir_entry *) ((char *) de + le16_to_cpu(de->rec_len));
1789 if (le16_to_cpu(de->rec_len) <
1792 i += le16_to_cpu(de->rec_len);
1804 offset += le16_to_cpu(de->rec_len);
1832 *f_pos += le16_to_cpu(de->rec_len);
1903 if (le16_to_cpu(de->rec_len) <
1906 i += le16_to_cpu(de->rec_len);
1924 offset += le16_to_cpu(de->rec_len);
1952 *f_pos += le16_to_cpu(de->rec_len);
2230 de->rec_len =
2235 de = (struct ocfs2_dir_entry *) ((char *)de + le16_to_cpu(de->rec_len));
2237 de->rec_len = cpu_to_le16(size - OCFS2_DIR_REC_LEN(1));
2319 int size = le16_to_cpu(de->rec_len);
2689 de_buf += le16_to_cpu(de->rec_len);
2731 de_buf += le16_to_cpu(de->rec_len);
2757 de_buf += le16_to_cpu(de->rec_len);
2765 * Expand rec_len of the rightmost dirent in a directory block so that it
2803 de_buf += le16_to_cpu(de->rec_len);
2807 le16_add_cpu(&prev_de->rec_len, bytes);
3354 de->rec_len = cpu_to_le16(ocfs2_dir_trailer_blk_off(sb));
3356 ocfs2_init_dir_trailer(dir, new_bh, le16_to_cpu(de->rec_len));
3367 de->rec_len = cpu_to_le16(sb->s_blocksize);
3411 unsigned int rec_len, new_rec_len, free_space = dir->i_sb->s_blocksize;
3424 rec_len = OCFS2_DIR_REC_LEN(namelen);
3442 if (ocfs2_dirent_would_fit(de, rec_len)) {
3452 de_buf += le16_to_cpu(de->rec_len);
3453 offset += le16_to_cpu(de->rec_len);
3462 new_rec_len = le16_to_cpu(last_de->rec_len) + free_space;
3463 if (new_rec_len < (rec_len + OCFS2_DIR_REC_LEN(last_de->name_len)))
3476 unsigned short rec_len;
3488 rec_len = OCFS2_DIR_REC_LEN(namelen);
3527 if (ocfs2_dirent_would_fit(de, rec_len)) {
3536 offset += le16_to_cpu(de->rec_len);
3537 de = (struct ocfs2_dir_entry *)((char *) de + le16_to_cpu(de->rec_len));
4022 int rec_len = OCFS2_DIR_REC_LEN(namelen);
4040 if (rec_len <= le16_to_cpu(db->db_free_rec_len)) {