Lines Matching refs:qinfo
96 struct qtree_mem_dqinfo *qinfo; in v2_read_file_info() local
127 qinfo = info->dqi_priv; in v2_read_file_info()
145 qinfo->dqi_sb = sb; in v2_read_file_info()
146 qinfo->dqi_type = type; in v2_read_file_info()
147 qinfo->dqi_blocks = le32_to_cpu(dinfo.dqi_blocks); in v2_read_file_info()
148 qinfo->dqi_free_blk = le32_to_cpu(dinfo.dqi_free_blk); in v2_read_file_info()
149 qinfo->dqi_free_entry = le32_to_cpu(dinfo.dqi_free_entry); in v2_read_file_info()
150 qinfo->dqi_blocksize_bits = V2_DQBLKSIZE_BITS; in v2_read_file_info()
151 qinfo->dqi_usable_bs = 1 << V2_DQBLKSIZE_BITS; in v2_read_file_info()
152 qinfo->dqi_qtree_depth = qtree_depth(qinfo); in v2_read_file_info()
154 qinfo->dqi_entry_size = sizeof(struct v2r0_disk_dqblk); in v2_read_file_info()
155 qinfo->dqi_ops = &v2r0_qtree_ops; in v2_read_file_info()
157 qinfo->dqi_entry_size = sizeof(struct v2r1_disk_dqblk); in v2_read_file_info()
158 qinfo->dqi_ops = &v2r1_qtree_ops; in v2_read_file_info()
162 if ((loff_t)qinfo->dqi_blocks << qinfo->dqi_blocksize_bits > in v2_read_file_info()
165 (loff_t)qinfo->dqi_blocks << qinfo->dqi_blocksize_bits, in v2_read_file_info()
169 if (qinfo->dqi_free_blk >= qinfo->dqi_blocks) { in v2_read_file_info()
171 qinfo->dqi_free_blk, qinfo->dqi_blocks); in v2_read_file_info()
174 if (qinfo->dqi_free_entry >= qinfo->dqi_blocks) { in v2_read_file_info()
176 qinfo->dqi_free_entry, qinfo->dqi_blocks); in v2_read_file_info()
196 struct qtree_mem_dqinfo *qinfo = info->dqi_priv; in v2_write_file_info() local
207 dinfo.dqi_blocks = cpu_to_le32(qinfo->dqi_blocks); in v2_write_file_info()
208 dinfo.dqi_free_blk = cpu_to_le32(qinfo->dqi_free_blk); in v2_write_file_info()
209 dinfo.dqi_free_entry = cpu_to_le32(qinfo->dqi_free_entry); in v2_write_file_info()