Whamcloud - gitweb
LU-13135 quota: improve checks in OSDs to ignore quota
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_quota.c
index c69cfcd..b28338c 100644 (file)
@@ -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;