X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fquota%2Flquota_internal.h;fp=lustre%2Fquota%2Flquota_internal.h;h=f7d30b33998501024d18c6c408ffe1b447c8a44a;hp=5361b7d0a28a423b0c9a388878f93fb5803446da;hb=4ce3219eb8e6a07c5c37e4b425b29195488005c3;hpb=672986cbae63e90262d55bf277643ea046bfa8b2;ds=sidebyside diff --git a/lustre/quota/lquota_internal.h b/lustre/quota/lquota_internal.h index 5361b7d..f7d30b3 100644 --- a/lustre/quota/lquota_internal.h +++ b/lustre/quota/lquota_internal.h @@ -31,22 +31,6 @@ #ifndef _LQUOTA_INTERNAL_H #define _LQUOTA_INTERNAL_H -/* -static inline char *qtype_name(int qtype) -{ - switch (qtype) { - case USRQUOTA: - return "usr"; - case GRPQUOTA: - return "grp"; - case PRJQUOTA: - return "prj"; - break; - } - return "unknown"; -} -*/ - #define RES_NAME(res) ((res) == LQUOTA_RES_MD ? "md" : "dt") #define QIF_IFLAGS (QIF_INODES | QIF_ITIME | QIF_ILIMITS) @@ -77,7 +61,7 @@ static inline __u32 qtype2slv_oid(int qtype) return LQUOTA_PRJ_OID; } - LASSERTF(0, "invalid quota type: %d", qtype); + /* should not come here, just make compile happy */ return LQUOTA_USR_OID; } @@ -321,7 +305,7 @@ static inline int lquota_over_fl(int qtype) return QUOTA_FL_OVER_PRJQUOTA; } - LASSERTF(0, "invalid quota type: %d", qtype); + /* should not come here, just make compile happy */ return QUOTA_FL_OVER_USRQUOTA; }