Whamcloud - gitweb
LU-1131 osd-ldiskfs: better journal credit tracking
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_quota.c
index 414284e..2bf0b5d 100644 (file)
@@ -511,8 +511,9 @@ int osd_declare_qid(const struct lu_env *env, struct osd_thandle *oh,
                        RETURN(-EOVERFLOW);
                }
 
-               oh->ot_credits += (allocated || qi->lqi_id.qid_uid == 0) ?
-                       1 : LDISKFS_QUOTA_INIT_BLOCKS(osd_sb(dev));
+               OSD_DECLARE_OP(oh, quota,
+                              (allocated || qi->lqi_id.qid_uid == 0) ?
+                              1 : LDISKFS_QUOTA_INIT_BLOCKS(osd_sb(dev)));
 
                oh->ot_id_array[i] = qi->lqi_id.qid_uid;
                osd_qid_set_type(oh, i, qi->lqi_type);