dirtied = true;
}
- if (dirtied) {
- if (!is_default && lqe->lqe_is_default) {
- LQUOTA_DEBUG(lqe, "the qid %llu has been set quota"
- " explicitly, clear the default flag",
- lqe->lqe_id.qid_uid);
+ if (!is_default && lqe->lqe_is_default) {
+ LQUOTA_DEBUG(lqe, "the qid %llu has been set quota"
+ " explicitly, clear the default flag",
+ lqe->lqe_id.qid_uid);
- qmt_lqe_clear_default(lqe);
- }
+ qmt_lqe_clear_default(lqe);
+ dirtied = true;
+ }
+ if (dirtied) {
if (!is_updated) {
/* write new quota settings to disk */
rc = qmt_glb_write(env, th, lqe, LQUOTA_BUMP_VER, &ver);
case LUSTRE_Q_GETDEFAULT:
is_default = true;
+ /* fallthrough */
case Q_GETQUOTA: /* consult quota limit */
/* extract quota ID from quotactl request */
case LUSTRE_Q_SETDEFAULT:
is_default = true;
+ /* fallthrough */
case Q_SETQUOTA: /* change quota limits */
/* extract quota ID from quotactl request */