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
/
ofd
/
ofd_io.c
diff --git
a/lustre/ofd/ofd_io.c
b/lustre/ofd/ofd_io.c
index
dbf6a22
..
9b6981f
100644
(file)
--- a/
lustre/ofd/ofd_io.c
+++ b/
lustre/ofd/ofd_io.c
@@
-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;