Whamcloud - gitweb
Branch b1_6
authortianzy <tianzy>
Mon, 12 May 2008 05:15:36 +0000 (05:15 +0000)
committertianzy <tianzy>
Mon, 12 May 2008 05:15:36 +0000 (05:15 +0000)
change the time of ost informing osc out of quota in order to get more
accurate quota
b=14909
i=johann, andrew

lustre/quota/quota_interface.c

index 7e388ab..af3c6f5 100644 (file)
@@ -330,7 +330,7 @@ static int filter_quota_getflag(struct obd_device *obd, struct obdo *oa)
                 oa->o_valid |= (cnt == USRQUOTA) ?
                                OBD_MD_FLUSRQUOTA : OBD_MD_FLGRPQUOTA;
                 if (oqctl->qc_dqblk.dqb_bhardlimit &&
-                   (toqb(oqctl->qc_dqblk.dqb_curspace) >
+                   (toqb(oqctl->qc_dqblk.dqb_curspace) >=
                     oqctl->qc_dqblk.dqb_bhardlimit))
                         oa->o_flags |= (cnt == USRQUOTA) ?
                                 OBD_FL_NO_USRQUOTA : OBD_FL_NO_GRPQUOTA;