Whamcloud - gitweb
LU-16415 quota: enforce project quota for root
[fs/lustre-release.git] / lustre / ofd / ofd_io.c
index dbf6a22..9b6981f 100644 (file)
@@ -1545,6 +1545,9 @@ int ofd_commitrw(const struct lu_env *env, int cmd, struct obd_export *exp,
                                        oa->o_flags = OBD_FL_NO_PRJQUOTA;
                        }
 
+                       if (lnb[0].lnb_flags & OBD_BRW_ROOT_PRJQUOTA)
+                               oa->o_flags |= OBD_FL_ROOT_PRJQUOTA;
+
                        if (root_squash)
                                oa->o_flags |= OBD_FL_ROOT_SQUASH;