Whamcloud - gitweb
LU-16363 build: fiemap flexible array
[fs/lustre-release.git] / lustre / osd-zfs / osd_quota.c
index 243e3e2..7296f3e 100644 (file)
@@ -27,6 +27,7 @@
  * Author: Johann Lombardi <johann@whamcloud.com>
  */
 
+#include <dt_object.h>
 #include <lustre_quota.h>
 #include <obd.h>
 #include "osd_internal.h"
@@ -528,6 +529,10 @@ int osd_declare_quota(const struct lu_env *env, struct osd_device *osd,
                        th->th_ignore_quota;
        ENTRY;
 
+       /* very fast path for special files like llog */
+       if (uid == 0 && gid == 0 && projid == 0)
+               return 0;
+
        if (osd_qid_declare_flags & OSD_QID_INODE)
                qsd = osd->od_quota_slave_md;
        else if (osd_qid_declare_flags & OSD_QID_BLK)