Whamcloud - gitweb
LU-15694 quota: keep grace time while setting default limits
[fs/lustre-release.git] / lustre / quota / qmt_entry.c
index a37bf48..92d83b6 100644 (file)
@@ -354,7 +354,8 @@ int qmt_glb_write(const struct lu_env *env, struct thandle *th,
        if (lqe->lqe_is_default) {
                rec->qbr_hardlimit = 0;
                rec->qbr_softlimit = 0;
-               rec->qbr_time      = LQUOTA_GRACE_FLAG(0, LQUOTA_FLAG_DEFAULT);
+               rec->qbr_time      = LQUOTA_GRACE_FLAG(lqe->lqe_gracetime,
+                                                      LQUOTA_FLAG_DEFAULT);
        } else {
                rec->qbr_hardlimit = lqe->lqe_hardlimit;
                rec->qbr_softlimit = lqe->lqe_softlimit;