Lines Matching refs:info
34 int qtree_entry_unused(struct qtree_mem_dqinfo *info, char *disk)
38 for (i = 0; i < info->dqi_entry_size; i++)
44 int qtree_dqstr_in_blk(struct qtree_mem_dqinfo *info)
47 info->dqi_entry_size;
92 struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree;
98 if (info->dqi_free_blk) {
99 blk = info->dqi_free_blk;
101 info->dqi_free_blk = ext2fs_le32_to_cpu(dh->dqdh_next_free);
105 if (write_blk(h, info->dqi_blocks, buf) < 0) {
111 blk = info->dqi_blocks++;
122 struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree;
124 dh->dqdh_next_free = ext2fs_cpu_to_le32(info->dqi_free_blk);
127 info->dqi_free_blk = blk;
170 struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree;
175 dh->dqdh_next_free = ext2fs_cpu_to_le32(info->dqi_free_entry);
178 if (info->dqi_free_entry) {
179 read_blk(h, info->dqi_free_entry, tmpbuf);
182 write_blk(h, info->dqi_free_entry, tmpbuf);
185 info->dqi_free_entry = blk;
195 struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree;
207 if (info->dqi_free_entry) {
208 blk = info->dqi_free_entry;
218 info->dqi_free_entry = blk;
224 qtree_dqstr_in_blk(info))
232 i < qtree_dqstr_in_blk(info) && !qtree_entry_unused(info, ddquot);
234 ddquot += info->dqi_entry_size;
236 if (i == qtree_dqstr_in_blk(info))
242 i * info->dqi_entry_size;
316 struct qtree_mem_dqinfo *info =
318 log_debug("writing ddquot 1: off=%llu, info->dqi_entry_size=%u",
320 info->dqi_entry_size);
321 ret = ext2fs_get_mem(info->dqi_entry_size, &ddquot);
331 info->dqi_ops->mem2disk_dqblk(ddquot, dquot);
332 log_debug("writing ddquot 2: off=%llu, info->dqi_entry_size=%u",
334 info->dqi_entry_size);
336 info->dqi_entry_size);
338 if (ret != info->dqi_entry_size) {
351 struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree;
374 0, info->dqi_entry_size);
378 qtree_dqstr_in_blk(info) - 1)
441 struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree;
451 i < qtree_dqstr_in_blk(info) && !info->dqi_ops->is_id(ddquot, dquot);
453 ddquot += info->dqi_entry_size;
455 if (i == qtree_dqstr_in_blk(info))
460 i * info->dqi_entry_size;
501 struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree;
509 if (ext2fs_get_mem(info->dqi_entry_size, &ddquot)) {
523 info->dqi_entry_size);
524 if (ret != info->dqi_entry_size) {
530 info->dqi_ops->disk2mem_dqblk(dquot, ddquot);
546 struct qtree_mem_dqinfo *info =
561 for (i = 0; i < qtree_dqstr_in_blk(info);
562 i++, ddata += info->dqi_entry_size)
563 if (!qtree_entry_unused(info, ddata)) {
567 i * info->dqi_entry_size;
568 info->dqi_ops->disk2mem_dqblk(dquot, ddata);
638 struct qtree_mem_dqinfo *info = &v2info->dqi_qtree;
645 if (ext2fs_get_memzero((info->dqi_blocks + 7) >> 3, &bitmap)) {
651 v2info->dqi_data_blocks = find_set_bits(bitmap, info->dqi_blocks);