* GPL HEADER END
*/
/*
- * Copyright (c) 2012, 2016, Intel Corporation.
+ * Copyright (c) 2012, 2017, Intel Corporation.
* Use is subject to license terms.
*
* Author: Johann Lombardi <johann.lombardi@intel.com>
char *name;
ENTRY;
+ if (qsd->qsd_dev->dd_rdonly)
+ RETURN(0);
+
/* don't bother to do reintegration when quota isn't enabled */
if (!qsd_type_enabled(qsd, qqi->qqi_qtype))
RETURN(0);
- if (qsd->qsd_acct_failed)
+ if (qqi->qqi_acct_failed)
/* no space accounting support, can't enable enforcement */
RETURN(0);