ocfs2: Avoid unnecessary block mapping when refreshing quota info
[safe/jmp/linux-2.6] / fs / ocfs2 / dlmglue.c
index 50c4ee8..39eb16a 100644 (file)
@@ -3897,7 +3897,8 @@ static int ocfs2_refresh_qinfo(struct ocfs2_mem_dqinfo *oinfo)
                oinfo->dqi_gi.dqi_free_entry =
                                        be32_to_cpu(lvb->lvb_free_entry);
        } else {
-               status = ocfs2_read_quota_block(oinfo->dqi_gqinode, 0, &bh);
+               status = ocfs2_read_quota_phys_block(oinfo->dqi_gqinode,
+                                                    oinfo->dqi_giblk, &bh);
                if (status) {
                        mlog_errno(status);
                        goto bail;