X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flvfs%2Flustre_quota_fmt.c;h=9508437a477aa1f2383931040240ae1759faa0bc;hb=62ef9c949753efb9535fa5b1eb2eb38ec663917f;hp=0488c2c5096efa3998dd56ccd19c249f2db47270;hpb=7cf2e3c0ed2f29cdefc0543c619788d01423de58;p=fs%2Flustre-release.git diff --git a/lustre/lvfs/lustre_quota_fmt.c b/lustre/lvfs/lustre_quota_fmt.c index 0488c2c..9508437 100644 --- a/lustre/lvfs/lustre_quota_fmt.c +++ b/lustre/lvfs/lustre_quota_fmt.c @@ -50,7 +50,9 @@ #include #include #include -#include +#ifdef HAVE_QUOTAIO_V1_H +# include +#endif #include #include @@ -843,7 +845,7 @@ int lustre_read_dquot(struct lustre_dquot *dquot) /* Invalidated quota? */ if (!dquot->dq_info || !(filp = dquot->dq_info->qi_files[type])) { CDEBUG(D_ERROR, "VFS: Quota invalidated while reading!\n"); - return -EIO; + return -ESRCH; } version = dquot->dq_info->qi_version;