struct lustre_disk_dqblk fakedquot;
memset(buf, 0, LUSTRE_DQBLKSIZE);
- if ((ret = quota_read(fp_v1, NULL, type, blk_item->blk, buf))<0) {
+
+ if ((ret = lustre_read_quota(fp_v1, NULL, type, buf, LUSTRE_DQBLKSIZE,
+ blk_item->blk << LUSTRE_DQBLKSIZE_BITS)) < 0) {
CERROR("VFS: Can't read quota tree block %u.\n",
blk_item->blk);
GOTO(out_free, rc = ret);