-#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 8, 53, 0)
- /* To be compatible with old Lustre-2.x MDT (x <= 6), generate dummy
- * XATTR_NAME_LFSCK_NAMESPACE_OLD EA, then when downgrade to Lustre-2.x,
- * the old LFSCK will find "invalid" XATTR_NAME_LFSCK_NAMESPACE_OLD EA,
- * then reset the namespace LFSCK trace file. */
- if (init) {
- rc = dt_declare_xattr_set(env, obj, &tbuf,
- XATTR_NAME_LFSCK_NAMESPACE_OLD,
- LU_XATTR_CREATE, handle);
- if (rc != 0)
- GOTO(out, rc);
- }
-#endif
-