X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flvfs%2Flustre_quota_fmt.c;h=26944fcc4067ca3726f5df02aa53d752003da420;hp=d169bb70b8ef5cbd2b36bbf6bc009f877e02836c;hb=84b4aa04afe79ca78b271e2902b24fda7bb6356e;hpb=234209056398f32c1f1ac301bfc3d1bee9582730 diff --git a/lustre/lvfs/lustre_quota_fmt.c b/lustre/lvfs/lustre_quota_fmt.c index d169bb7..26944fc 100644 --- a/lustre/lvfs/lustre_quota_fmt.c +++ b/lustre/lvfs/lustre_quota_fmt.c @@ -103,15 +103,8 @@ int check_quota_file(struct file *f, struct inode *inode, int type, static const uint quota_magics[] = LUSTRE_INITQMAGICS; const uint *quota_versions = lustre_initqversions[version]; - if (!f && !inode) { - CERROR("check_quota_file failed!\n"); - libcfs_debug_dumpstack(NULL); - return -EINVAL; - } - size = lustre_read_quota(f, inode, type, (char *)&dqhead, sizeof(struct lustre_disk_dqheader), 0); - if (size != sizeof(struct lustre_disk_dqheader)) return -EINVAL; if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type] ||