Lines Matching refs:blocksize

315 					int count, unsigned int blocksize);
317 unsigned int blocksize);
332 unsigned int blocksize) in ext4_initialize_dirent_tail() argument
334 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail()
338 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail()
347 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local
354 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail()
355 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail()
357 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail()
368 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) != in get_dirent_tail()
450 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dx_countlimit() local
451 unsigned int rlen = ext4_rec_len_from_disk(dirent->rec_len, blocksize); in get_dx_countlimit()
453 if (rlen == blocksize) in get_dx_countlimit()
457 if (ext4_rec_len_from_disk(dp->rec_len, blocksize) != blocksize - 12) in get_dx_countlimit()
558 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize) in ext4_next_entry() argument
561 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry()
745 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local
763 bh->b_data, blocksize, 0); in dx_show_entries()
772 (space/bcount)*100/blocksize); in dx_show_entries()
1321 int blocksize = EXT4_BLOCK_SIZE(dir->i_sb); in dx_make_map() local
1343 blocksize); in dx_make_map()
1347 de = ext4_next_entry(de, blocksize); in dx_make_map()
1874 unsigned blocksize) in dx_move_dirents() argument
1885 ext4_rec_len_to_disk(rec_len, blocksize); in dx_move_dirents()
1890 blocksize) - in dx_move_dirents()
1905 unsigned int blocksize) in dx_pack_dirents() argument
1911 while ((char*)de < base + blocksize) { in dx_pack_dirents()
1912 next = ext4_next_entry(de, blocksize); in dx_pack_dirents()
1917 to->rec_len = ext4_rec_len_to_disk(rec_len, blocksize); in dx_pack_dirents()
1935 unsigned blocksize = dir->i_sb->s_blocksize; in do_split() local
1973 map = (struct dx_map_entry *) (data2 + blocksize); in do_split()
1986 if (size + map[i].size/2 > blocksize/2) in do_split()
2011 blocksize); in do_split()
2012 de = dx_pack_dirents(dir, data1, blocksize); in do_split()
2013 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split()
2015 blocksize); in do_split()
2016 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split()
2018 blocksize); in do_split()
2020 ext4_initialize_dirent_tail(*bh, blocksize); in do_split()
2021 ext4_initialize_dirent_tail(bh2, blocksize); in do_split()
2025 blocksize, 1)); in do_split()
2027 blocksize, 1)); in do_split()
2132 unsigned int blocksize = dir->i_sb->s_blocksize; in add_dirent_to_buf() local
2141 blocksize - csum_size, fname, &de); in add_dirent_to_buf()
2154 ext4_insert_dentry(dir, inode, de, blocksize, fname); in add_dirent_to_buf()
2183 unsigned int blocksize = dir->i_sb->s_blocksize; in ext4_check_dx_root() local
2195 rlen = ext4_rec_len_from_disk(fde->rec_len, blocksize); in ext4_check_dx_root()
2210 rlen = ext4_rec_len_from_disk(fde->rec_len, blocksize); in ext4_check_dx_root()
2240 unsigned blocksize; in make_indexed_dir() local
2248 blocksize = dir->i_sb->s_blocksize; in make_indexed_dir()
2268 ext4_rec_len_from_disk(fde->rec_len, blocksize)); in make_indexed_dir()
2269 len = ((char *) root) + (blocksize - csum_size) - (char *) de; in make_indexed_dir()
2284 while ((char *)(de2 = ext4_next_entry(de, blocksize)) < top) { in make_indexed_dir()
2293 de->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in make_indexed_dir()
2294 (char *) de, blocksize); in make_indexed_dir()
2297 ext4_initialize_dirent_tail(bh2, blocksize); in make_indexed_dir()
2302 blocksize - ext4_dir_rec_len(2, NULL), blocksize); in make_indexed_dir()
2385 unsigned blocksize; in ext4_add_entry() local
2393 blocksize = sb->s_blocksize; in ext4_add_entry()
2471 de->rec_len = ext4_rec_len_to_disk(blocksize - csum_size, blocksize); in ext4_add_entry()
2474 ext4_initialize_dirent_tail(bh, blocksize); in ext4_add_entry()
2672 unsigned int blocksize = dir->i_sb->s_blocksize; in ext4_generic_delete_entry() local
2686 blocksize) + in ext4_generic_delete_entry()
2688 blocksize), in ext4_generic_delete_entry()
2689 blocksize); in ext4_generic_delete_entry()
2693 blocksize)); in ext4_generic_delete_entry()
2699 blocksize) - in ext4_generic_delete_entry()
2707 i += ext4_rec_len_from_disk(de->rec_len, blocksize); in ext4_generic_delete_entry()
2709 de = ext4_next_entry(de, blocksize); in ext4_generic_delete_entry()
2932 int blocksize, int csum_size, in ext4_init_dot_dotdot() argument
2938 blocksize); in ext4_init_dot_dotdot()
2942 de = ext4_next_entry(de, blocksize); in ext4_init_dot_dotdot()
2946 de->rec_len = ext4_rec_len_to_disk(blocksize - in ext4_init_dot_dotdot()
2948 blocksize); in ext4_init_dot_dotdot()
2952 blocksize); in ext4_init_dot_dotdot()
2956 return ext4_next_entry(de, blocksize); in ext4_init_dot_dotdot()
2965 unsigned int blocksize = dir->i_sb->s_blocksize; in ext4_init_new_dir() local
2985 ext4_init_dot_dotdot(inode, de, blocksize, csum_size, dir->i_ino, 0); in ext4_init_new_dir()
2988 ext4_initialize_dirent_tail(dir_block, blocksize); in ext4_init_new_dir()