Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-16415 quota: enforce project quota for root
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_io.c
diff --git
a/lustre/mdt/mdt_io.c
b/lustre/mdt/mdt_io.c
index
f766315
..
fa72341
100644
(file)
--- a/
lustre/mdt/mdt_io.c
+++ b/
lustre/mdt/mdt_io.c
@@
-842,6
+842,9
@@
int mdt_obd_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;