Whamcloud - gitweb
LU-1842 iam: store key & rec in LE order for quota IAM files
[fs/lustre-release.git] / lustre / include / lustre_fid.h
index bb664b2..56e2186 100644 (file)
@@ -143,6 +143,12 @@ static inline int fid_is_acct(const struct lu_fid *fid)
                 fid_oid(fid) == ACCT_GROUP_OID);
 }
 
+static inline int fid_is_quota(const struct lu_fid *fid)
+{
+       return fid_seq(fid) == FID_SEQ_QUOTA ||
+              fid_seq(fid) == FID_SEQ_QUOTA_GLB;
+}
+
 enum lu_mgr_type {
         LUSTRE_SEQ_SERVER,
         LUSTRE_SEQ_CONTROLLER