Lines Matching refs:blocksize
298 int count, unsigned int blocksize);
300 unsigned int blocksize);
315 unsigned int blocksize) in ext4_initialize_dirent_tail() argument
317 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail()
321 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail()
330 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local
337 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail()
338 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail()
340 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail()
351 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) != in get_dirent_tail()
433 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dx_countlimit() local
434 unsigned int rlen = ext4_rec_len_from_disk(dirent->rec_len, blocksize); in get_dx_countlimit()
436 if (rlen == blocksize) in get_dx_countlimit()
440 if (ext4_rec_len_from_disk(dp->rec_len, blocksize) != blocksize - 12) in get_dx_countlimit()
541 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize) in ext4_next_entry() argument
544 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry()
733 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local
751 bh->b_data, blocksize, 0); in dx_show_entries()
760 (space/bcount)*100/blocksize); in dx_show_entries()
1291 int blocksize = EXT4_BLOCK_SIZE(dir->i_sb); in dx_make_map() local
1309 blocksize); in dx_make_map()
1313 de = ext4_next_entry(de, blocksize); in dx_make_map()
1884 unsigned blocksize) in dx_move_dirents() argument
1895 ext4_rec_len_to_disk(rec_len, blocksize); in dx_move_dirents()
1908 unsigned int blocksize) in dx_pack_dirents() argument
1914 while ((char*)de < base + blocksize) { in dx_pack_dirents()
1915 next = ext4_next_entry(de, blocksize); in dx_pack_dirents()
1920 to->rec_len = ext4_rec_len_to_disk(rec_len, blocksize); in dx_pack_dirents()
1938 unsigned blocksize = dir->i_sb->s_blocksize; in do_split() local
1974 map = (struct dx_map_entry *) (data2 + blocksize); in do_split()
1987 if (size + map[i].size/2 > blocksize/2) in do_split()
2012 blocksize); in do_split()
2013 de = dx_pack_dirents(dir, data1, blocksize); in do_split()
2014 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split()
2016 blocksize); in do_split()
2017 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split()
2019 blocksize); in do_split()
2021 ext4_initialize_dirent_tail(*bh, blocksize); in do_split()
2022 ext4_initialize_dirent_tail(bh2, blocksize); in do_split()
2026 blocksize, 1)); in do_split()
2028 blocksize, 1)); in do_split()
2133 unsigned int blocksize = dir->i_sb->s_blocksize; in add_dirent_to_buf() local
2142 blocksize - csum_size, fname, &de); in add_dirent_to_buf()
2154 ext4_insert_dentry(dir, inode, de, blocksize, fname); in add_dirent_to_buf()
2194 unsigned blocksize; in make_indexed_dir() local
2202 blocksize = dir->i_sb->s_blocksize; in make_indexed_dir()
2216 ext4_rec_len_from_disk(fde->rec_len, blocksize)); in make_indexed_dir()
2217 if ((char *) de >= (((char *) root) + blocksize)) { in make_indexed_dir()
2222 len = ((char *) root) + (blocksize - csum_size) - (char *) de; in make_indexed_dir()
2236 while ((char *)(de2 = ext4_next_entry(de, blocksize)) < top) { in make_indexed_dir()
2238 (data2 + (blocksize - csum_size) - in make_indexed_dir()
2246 de->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in make_indexed_dir()
2247 (char *) de, blocksize); in make_indexed_dir()
2250 ext4_initialize_dirent_tail(bh2, blocksize); in make_indexed_dir()
2255 blocksize - ext4_dir_rec_len(2, NULL), blocksize); in make_indexed_dir()
2333 unsigned blocksize; in ext4_add_entry() local
2341 blocksize = sb->s_blocksize; in ext4_add_entry()
2419 de->rec_len = ext4_rec_len_to_disk(blocksize - csum_size, blocksize); in ext4_add_entry()
2422 ext4_initialize_dirent_tail(bh, blocksize); in ext4_add_entry()
2619 unsigned int blocksize = dir->i_sb->s_blocksize; in ext4_generic_delete_entry() local
2633 blocksize) + in ext4_generic_delete_entry()
2635 blocksize), in ext4_generic_delete_entry()
2636 blocksize); in ext4_generic_delete_entry()
2642 i += ext4_rec_len_from_disk(de->rec_len, blocksize); in ext4_generic_delete_entry()
2644 de = ext4_next_entry(de, blocksize); in ext4_generic_delete_entry()
2850 int blocksize, int csum_size, in ext4_init_dot_dotdot() argument
2856 blocksize); in ext4_init_dot_dotdot()
2860 de = ext4_next_entry(de, blocksize); in ext4_init_dot_dotdot()
2864 de->rec_len = ext4_rec_len_to_disk(blocksize - in ext4_init_dot_dotdot()
2866 blocksize); in ext4_init_dot_dotdot()
2870 blocksize); in ext4_init_dot_dotdot()
2874 return ext4_next_entry(de, blocksize); in ext4_init_dot_dotdot()
2883 unsigned int blocksize = dir->i_sb->s_blocksize; in ext4_init_new_dir() local
2903 ext4_init_dot_dotdot(inode, de, blocksize, csum_size, dir->i_ino, 0); in ext4_init_new_dir()
2906 ext4_initialize_dirent_tail(dir_block, blocksize); in ext4_init_new_dir()