X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flvfs%2Flustre_quota_fmt.c;h=cb4d42d225d4a7a50bd8681bc11b3099acca05c5;hb=331efcd1f1d446fc3fcd71adfc8223df90b2ba4c;hp=d169bb70b8ef5cbd2b36bbf6bc009f877e02836c;hpb=234209056398f32c1f1ac301bfc3d1bee9582730;p=fs%2Flustre-release.git diff --git a/lustre/lvfs/lustre_quota_fmt.c b/lustre/lvfs/lustre_quota_fmt.c index d169bb7..cb4d42d 100644 --- a/lustre/lvfs/lustre_quota_fmt.c +++ b/lustre/lvfs/lustre_quota_fmt.c @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -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] ||