Lines Matching refs:blocksize
163 static int dx_make_map(struct ext4_dir_entry_2 *de, unsigned blocksize,
167 struct dx_map_entry *offsets, int count, unsigned blocksize);
168 static struct ext4_dir_entry_2* dx_pack_dirents(char *base, unsigned blocksize);
186 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize)
189 ext4_rec_len_from_disk(p->rec_len, blocksize));
305 unsigned blocksize = dir->i_sb->s_blocksize;
321 dx_show_leaf(hinfo, (struct ext4_dir_entry_2 *) bh->b_data, blocksize, 0);
330 (space/bcount)*100/blocksize);
711 static int dx_make_map(struct ext4_dir_entry_2 *de, unsigned blocksize,
719 while ((char *) de < base + blocksize) {
729 de = ext4_next_entry(de, blocksize);
1111 unsigned blocksize)
1121 ext4_rec_len_to_disk(rec_len, blocksize);
1133 static struct ext4_dir_entry_2* dx_pack_dirents(char *base, unsigned blocksize)
1139 while ((char*)de < base + blocksize) {
1140 next = ext4_next_entry(de, blocksize);
1145 to->rec_len = ext4_rec_len_to_disk(rec_len, blocksize);
1163 unsigned blocksize = dir->i_sb->s_blocksize;
1194 map = (struct dx_map_entry *) (data2 + blocksize);
1196 blocksize, hinfo, map);
1204 if (size + map[i].size/2 > blocksize/2)
1218 de2 = dx_move_dirents(data1, data2, map + split, count - split, blocksize);
1219 de = dx_pack_dirents(data1, blocksize);
1220 de->rec_len = ext4_rec_len_to_disk(data1 + blocksize - (char *) de,
1221 blocksize);
1222 de2->rec_len = ext4_rec_len_to_disk(data2 + blocksize - (char *) de2,
1223 blocksize);
1224 dxtrace(dx_show_leaf (hinfo, (struct ext4_dir_entry_2 *) data1, blocksize, 1));
1225 dxtrace(dx_show_leaf (hinfo, (struct ext4_dir_entry_2 *) data2, blocksize, 1));
1270 unsigned int blocksize = dir->i_sb->s_blocksize;
1278 top = bh->b_data + blocksize - reclen;
1285 rlen = ext4_rec_len_from_disk(de->rec_len, blocksize);
1303 rlen = ext4_rec_len_from_disk(de->rec_len, blocksize);
1306 de1->rec_len = ext4_rec_len_to_disk(rlen - nlen, blocksize);
1307 de->rec_len = ext4_rec_len_to_disk(nlen, blocksize);
1347 unsigned blocksize;
1352 blocksize = dir->i_sb->s_blocksize;
1365 ext4_rec_len_from_disk(fde->rec_len, blocksize));
1366 if ((char *) de >= (((char *) root) + blocksize)) {
1371 len = ((char *) root) + blocksize - (char *) de;
1385 while ((char *)(de2 = ext4_next_entry(de, blocksize)) < top)
1387 de->rec_len = ext4_rec_len_to_disk(data1 + blocksize - (char *) de,
1388 blocksize);
1391 de->rec_len = ext4_rec_len_to_disk(blocksize - EXT4_DIR_REC_LEN(2),
1392 blocksize);
1441 unsigned blocksize;
1445 blocksize = sb->s_blocksize;
1477 de->rec_len = ext4_rec_len_to_disk(blocksize, blocksize);
1629 unsigned int blocksize = dir->i_sb->s_blocksize;
1644 blocksize) +
1646 blocksize),
1647 blocksize);
1655 i += ext4_rec_len_from_disk(de->rec_len, blocksize);
1657 de = ext4_next_entry(de, blocksize);
1791 unsigned int blocksize = dir->i_sb->s_blocksize;
1827 blocksize);
1830 de = ext4_next_entry(de, blocksize);
1832 de->rec_len = ext4_rec_len_to_disk(blocksize - EXT4_DIR_REC_LEN(1),
1833 blocksize);