Whamcloud - gitweb
LU-2548 quota: don't apply migration on global index copy
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_quota.c
index 9e16533..bfab83a 100644 (file)
@@ -857,6 +857,8 @@ static int truncate_quota_index(const struct lu_env *env, struct dt_object *dt,
        int                      rc;
        ENTRY;
 
+       LASSERT(fid_seq(lu_object_fid(&dt->do_lu)) == FID_SEQ_QUOTA_GLB);
+
        OBD_ALLOC_PTR(attr);
        if (attr == NULL)
                RETURN(-ENOMEM);