Whamcloud - gitweb
LU-935 quota: break early when b/i_unit_sz exceeded upper limit
authorNiu Yawei <niu@whamcloud.com>
Mon, 19 Dec 2011 04:12:55 +0000 (20:12 -0800)
committerJohann Lombardi <johann@whamcloud.com>
Thu, 5 Apr 2012 09:57:38 +0000 (05:57 -0400)
commit18aafe97a6782f9c7c301125895d23c0dff9ad8d
tree55376ff562db9795584b51812aee990520c8437b
parentff64bf69fdc50c093cb3a8d23c043f10892d5bd7
LU-935 quota: break early when b/i_unit_sz exceeded upper limit

While expanding b/i_unit_sz in dquot_create_oqaq(), we'd break the loop
early when the b/i_unit_sz exceeded upper limit, otherwise, qaq_b/iunit_sz
could be overflow and result in endless loop.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I6046c8b86cad00c8c2fa2d24d0e21821a3c02209
Reviewed-on: http://review.whamcloud.com/1887
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/quota/quota_master.c