Lines Matching refs:rec_len
167 else if (ext4_rec_len_from_disk(dirent->rec_len, in __ext4_read_dirblock()
223 __le16 rec_len; member
354 while (d < top && d->rec_len) in get_dirent_tail()
356 le16_to_cpu(d->rec_len)); in get_dirent_tail()
449 if (le16_to_cpu(dirent->rec_len) == EXT4_BLOCK_SIZE(inode->i_sb)) in get_dx_countlimit()
451 else if (le16_to_cpu(dirent->rec_len) == 12) { in get_dx_countlimit()
453 if (le16_to_cpu(dp->rec_len) != in get_dx_countlimit()
558 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry()
1321 map_tail->size = le16_to_cpu(de->rec_len); in dx_make_map()
1534 de_len = ext4_rec_len_from_disk(de->rec_len, in ext4_search_dir()
1554 ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize) == in is_dx_internal_node()
1900 unsigned rec_len = 0; in dx_move_dirents() local
1905 rec_len = ext4_dir_rec_len(de->name_len, dir); in dx_move_dirents()
1907 memcpy (to, de, rec_len); in dx_move_dirents()
1908 ((struct ext4_dir_entry_2 *) to)->rec_len = in dx_move_dirents()
1909 ext4_rec_len_to_disk(rec_len, blocksize); in dx_move_dirents()
1913 memset(&de->name_len, 0, ext4_rec_len_from_disk(de->rec_len, in dx_move_dirents()
1919 to += rec_len; in dx_move_dirents()
1921 return (struct ext4_dir_entry_2 *) (to - rec_len); in dx_move_dirents()
1932 unsigned rec_len = 0; in dx_pack_dirents() local
1938 rec_len = ext4_dir_rec_len(de->name_len, dir); in dx_pack_dirents()
1940 memmove(to, de, rec_len); in dx_pack_dirents()
1941 to->rec_len = ext4_rec_len_to_disk(rec_len, blocksize); in dx_pack_dirents()
1943 to = (struct ext4_dir_entry_2 *) (((char *) to) + rec_len); in dx_pack_dirents()
2037 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split()
2040 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split()
2098 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_find_dest_de()
2121 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_insert_dentry()
2125 de1->rec_len = ext4_rec_len_to_disk(rlen - nlen, buf_size); in ext4_insert_dentry()
2126 de->rec_len = ext4_rec_len_to_disk(nlen, buf_size); in ext4_insert_dentry()
2241 ext4_rec_len_from_disk(fde->rec_len, blocksize)); in make_indexed_dir()
2272 de->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in make_indexed_dir()
2280 de->rec_len = ext4_rec_len_to_disk( in make_indexed_dir()
2447 de->rec_len = ext4_rec_len_to_disk(blocksize - csum_size, blocksize); in ext4_add_entry()
2544 node2->fake.rec_len = ext4_rec_len_to_disk(sb->s_blocksize, in ext4_dx_add_entry()
2660 pde->rec_len = ext4_rec_len_to_disk( in ext4_generic_delete_entry()
2661 ext4_rec_len_from_disk(pde->rec_len, in ext4_generic_delete_entry()
2663 ext4_rec_len_from_disk(de->rec_len, in ext4_generic_delete_entry()
2668 memset(de, 0, ext4_rec_len_from_disk(de->rec_len, in ext4_generic_delete_entry()
2674 ext4_rec_len_from_disk(de->rec_len, in ext4_generic_delete_entry()
2683 i += ext4_rec_len_from_disk(de->rec_len, blocksize); in ext4_generic_delete_entry()
2912 de->rec_len = ext4_rec_len_to_disk(ext4_dir_rec_len(de->name_len, NULL), in ext4_init_dot_dotdot()
2921 de->rec_len = ext4_rec_len_to_disk(blocksize - in ext4_init_dot_dotdot()
2925 de->rec_len = ext4_rec_len_to_disk( in ext4_init_dot_dotdot()
3080 offset = ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize); in ext4_empty_dir()
3089 offset += ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize); in ext4_empty_dir()
3111 offset += ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize); in ext4_empty_dir()
3530 offset = ext4_rec_len_from_disk(de->rec_len, in ext4_get_first_dir_block()