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-13135 quota: improve checks in OSDs to ignore quota
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_quota.c
diff --git
a/lustre/osd-ldiskfs/osd_quota.c
b/lustre/osd-ldiskfs/osd_quota.c
index
c69cfcd
..
b28338c
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_quota.c
+++ b/
lustre/osd-ldiskfs/osd_quota.c
@@
-654,6
+654,10
@@
int osd_declare_inode_qid(const struct lu_env *env, qid_t uid, qid_t gid,
th->th_ignore_quota;
ENTRY;
+ /* very fast path for special files like llog */
+ if (uid == 0 && gid == 0 && projid == 0)
+ return 0;
+
/* let's start with user quota */
qi->lqi_id.qid_uid = uid;
qi->lqi_type = USRQUOTA;