Lines Matching refs:oinfo
4126 struct ocfs2_mem_dqinfo *oinfo = ocfs2_lock_res_qinfo(lockres); in ocfs2_set_qinfo_lvb() local
4127 struct mem_dqinfo *info = sb_dqinfo(oinfo->dqi_gi.dqi_sb, in ocfs2_set_qinfo_lvb()
4128 oinfo->dqi_gi.dqi_type); in ocfs2_set_qinfo_lvb()
4134 lvb->lvb_syncms = cpu_to_be32(oinfo->dqi_syncms); in ocfs2_set_qinfo_lvb()
4135 lvb->lvb_blocks = cpu_to_be32(oinfo->dqi_gi.dqi_blocks); in ocfs2_set_qinfo_lvb()
4136 lvb->lvb_free_blk = cpu_to_be32(oinfo->dqi_gi.dqi_free_blk); in ocfs2_set_qinfo_lvb()
4137 lvb->lvb_free_entry = cpu_to_be32(oinfo->dqi_gi.dqi_free_entry); in ocfs2_set_qinfo_lvb()
4140 void ocfs2_qinfo_unlock(struct ocfs2_mem_dqinfo *oinfo, int ex) in ocfs2_qinfo_unlock() argument
4142 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_qinfo_unlock()
4143 struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); in ocfs2_qinfo_unlock()
4150 static int ocfs2_refresh_qinfo(struct ocfs2_mem_dqinfo *oinfo) in ocfs2_refresh_qinfo() argument
4152 struct mem_dqinfo *info = sb_dqinfo(oinfo->dqi_gi.dqi_sb, in ocfs2_refresh_qinfo()
4153 oinfo->dqi_gi.dqi_type); in ocfs2_refresh_qinfo()
4154 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_refresh_qinfo()
4164 oinfo->dqi_syncms = be32_to_cpu(lvb->lvb_syncms); in ocfs2_refresh_qinfo()
4165 oinfo->dqi_gi.dqi_blocks = be32_to_cpu(lvb->lvb_blocks); in ocfs2_refresh_qinfo()
4166 oinfo->dqi_gi.dqi_free_blk = be32_to_cpu(lvb->lvb_free_blk); in ocfs2_refresh_qinfo()
4167 oinfo->dqi_gi.dqi_free_entry = in ocfs2_refresh_qinfo()
4170 status = ocfs2_read_quota_phys_block(oinfo->dqi_gqinode, in ocfs2_refresh_qinfo()
4171 oinfo->dqi_giblk, &bh); in ocfs2_refresh_qinfo()
4180 oinfo->dqi_syncms = le32_to_cpu(gdinfo->dqi_syncms); in ocfs2_refresh_qinfo()
4181 oinfo->dqi_gi.dqi_blocks = le32_to_cpu(gdinfo->dqi_blocks); in ocfs2_refresh_qinfo()
4182 oinfo->dqi_gi.dqi_free_blk = le32_to_cpu(gdinfo->dqi_free_blk); in ocfs2_refresh_qinfo()
4183 oinfo->dqi_gi.dqi_free_entry = in ocfs2_refresh_qinfo()
4195 int ocfs2_qinfo_lock(struct ocfs2_mem_dqinfo *oinfo, int ex) in ocfs2_qinfo_lock() argument
4197 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_qinfo_lock()
4198 struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); in ocfs2_qinfo_lock()
4219 status = ocfs2_refresh_qinfo(oinfo); in ocfs2_qinfo_lock()
4221 ocfs2_qinfo_unlock(oinfo, ex); in ocfs2_qinfo_lock()