Lines Matching refs:rec_len
134 struct buffer_head *bh, u16 rec_len) in ocfs2_init_dir_trailer() argument
144 trailer->db_free_rec_len = cpu_to_le16(rec_len); in ocfs2_init_dir_trailer()
303 const int rlen = le16_to_cpu(de->rec_len); in ocfs2_check_dir_entry()
374 de_len = le16_to_cpu(de->rec_len); in ocfs2_search_dirblock()
1155 le16_add_cpu(&pde->rec_len, in __ocfs2_delete_entry()
1156 le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry()
1162 i += le16_to_cpu(de->rec_len); in __ocfs2_delete_entry()
1164 de = (struct ocfs2_dir_entry *)((char *)de + le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry()
1175 hole = le16_to_cpu(de->rec_len); in ocfs2_figure_dirent_hole()
1177 hole = le16_to_cpu(de->rec_len) - in ocfs2_figure_dirent_hole()
1202 de_buf += le16_to_cpu(de->rec_len); in ocfs2_find_max_rec_len()
1411 le16_to_cpu(de->rec_len) >= new_rec_len) in ocfs2_dirent_would_fit()
1419 if (le16_to_cpu(de->rec_len) >= (de_really_used + new_rec_len)) in ocfs2_dirent_would_fit()
1587 unsigned short rec_len; in __ocfs2_add_entry() local
1632 rec_len = OCFS2_DIR_REC_LEN(namelen); in __ocfs2_add_entry()
1660 if (ocfs2_dirent_would_fit(de, rec_len)) { in __ocfs2_add_entry()
1691 offset += le16_to_cpu(de->rec_len); in __ocfs2_add_entry()
1695 de1->rec_len = in __ocfs2_add_entry()
1696 cpu_to_le16(le16_to_cpu(de->rec_len) - in __ocfs2_add_entry()
1698 de->rec_len = cpu_to_le16(OCFS2_DIR_REC_LEN(de->name_len)); in __ocfs2_add_entry()
1719 offset += le16_to_cpu(de->rec_len); in __ocfs2_add_entry()
1720 de = (struct ocfs2_dir_entry *) ((char *) de + le16_to_cpu(de->rec_len)); in __ocfs2_add_entry()
1769 if (le16_to_cpu(de->rec_len) < in ocfs2_dir_foreach_blk_id()
1772 i += le16_to_cpu(de->rec_len); in ocfs2_dir_foreach_blk_id()
1784 offset += le16_to_cpu(de->rec_len); in ocfs2_dir_foreach_blk_id()
1791 ctx->pos += le16_to_cpu(de->rec_len); in ocfs2_dir_foreach_blk_id()
1858 if (le16_to_cpu(de->rec_len) < in ocfs2_dir_foreach_blk_el()
1861 i += le16_to_cpu(de->rec_len); in ocfs2_dir_foreach_blk_el()
1888 offset += le16_to_cpu(de->rec_len); in ocfs2_dir_foreach_blk_el()
1889 ctx->pos += le16_to_cpu(de->rec_len); in ocfs2_dir_foreach_blk_el()
2160 de->rec_len = in ocfs2_fill_initial_dirents()
2165 de = (struct ocfs2_dir_entry *) ((char *)de + le16_to_cpu(de->rec_len)); in ocfs2_fill_initial_dirents()
2167 de->rec_len = cpu_to_le16(size - OCFS2_DIR_REC_LEN(1)); in ocfs2_fill_initial_dirents()
2247 int size = le16_to_cpu(de->rec_len); in ocfs2_fill_new_dir_el()
2623 de_buf += le16_to_cpu(de->rec_len); in ocfs2_dx_dir_index_block()
2667 de_buf += le16_to_cpu(de->rec_len); in ocfs2_dx_dir_index_root_block()
2693 de_buf += le16_to_cpu(de->rec_len); in ocfs2_new_dx_should_be_inline()
2739 de_buf += le16_to_cpu(de->rec_len); in ocfs2_expand_last_dirent()
2743 le16_add_cpu(&prev_de->rec_len, bytes); in ocfs2_expand_last_dirent()
3289 de->rec_len = cpu_to_le16(ocfs2_dir_trailer_blk_off(sb)); in ocfs2_extend_dir()
3291 ocfs2_init_dir_trailer(dir, new_bh, le16_to_cpu(de->rec_len)); in ocfs2_extend_dir()
3302 de->rec_len = cpu_to_le16(sb->s_blocksize); in ocfs2_extend_dir()
3346 unsigned int rec_len, new_rec_len, free_space; in ocfs2_find_dir_space_id() local
3359 rec_len = OCFS2_DIR_REC_LEN(namelen); in ocfs2_find_dir_space_id()
3377 if (ocfs2_dirent_would_fit(de, rec_len)) { in ocfs2_find_dir_space_id()
3387 de_buf += le16_to_cpu(de->rec_len); in ocfs2_find_dir_space_id()
3388 offset += le16_to_cpu(de->rec_len); in ocfs2_find_dir_space_id()
3397 new_rec_len = le16_to_cpu(last_de->rec_len) + free_space; in ocfs2_find_dir_space_id()
3398 if (new_rec_len < (rec_len + OCFS2_DIR_REC_LEN(last_de->name_len))) in ocfs2_find_dir_space_id()
3411 unsigned short rec_len; in ocfs2_find_dir_space_el() local
3421 rec_len = OCFS2_DIR_REC_LEN(namelen); in ocfs2_find_dir_space_el()
3459 if (ocfs2_dirent_would_fit(de, rec_len)) { in ocfs2_find_dir_space_el()
3468 offset += le16_to_cpu(de->rec_len); in ocfs2_find_dir_space_el()
3469 de = (struct ocfs2_dir_entry *)((char *) de + le16_to_cpu(de->rec_len)); in ocfs2_find_dir_space_el()
3961 int rec_len = OCFS2_DIR_REC_LEN(namelen); in ocfs2_search_dx_free_list() local
3979 if (rec_len <= le16_to_cpu(db->db_free_rec_len)) { in ocfs2_search_dx_free_list()