-
-#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 7, 53, 0)
- /* type is set as -1 when reading old admin quota file */
- if (type != USRQUOTA && type != GRPQUOTA) {
- struct lu_buf lu_buffer;
- loff_t pos;
-
- lu_buffer.lb_buf = buf;
- lu_buffer.lb_len = LUSTRE_DQBLKSIZE;
- pos = blk << LUSTRE_DQBLKSIZE_BITS;
-
- ret = dt_record_read(env, &obj->oo_dt, &lu_buffer, &pos);
-
- if (ret == 0)
- ret = LUSTRE_DQBLKSIZE;
- else if (ret == -EBADR || ret == -EFAULT)
- ret = 0;
- RETURN(ret);
- }
-#else
-#warning "remove old quota compatibility code"
-#endif