From: Oleg Drokin Date: Wed, 31 Jul 2013 20:59:18 +0000 (+0000) Subject: Revert "LU-3627 quota: Fix incorrect NULL return value of qsd_init()" X-Git-Tag: 2.4.90~28 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=bdf591ff17e8d36e68c4eb49a2421cb0e79446c0 Revert "LU-3627 quota: Fix incorrect NULL return value of qsd_init()" This reverts commit 7c93d397d18f5f5380a969f52a806c28b2c78d54 Change-Id: I87d20ff338775a5cfdbc22cc7243ffdb5b0957eb Reviewed-on: http://review.whamcloud.com/7197 Reviewed-by: Oleg Drokin Tested-by: Oleg Drokin --- diff --git a/lustre/quota/qsd_lib.c b/lustre/quota/qsd_lib.c index 2a665cc..dfbf8a2 100644 --- a/lustre/quota/qsd_lib.c +++ b/lustre/quota/qsd_lib.c @@ -535,7 +535,7 @@ struct qsd_instance *qsd_init(const struct lu_env *env, char *svname, /* only configure qsd for MDT & OST */ type = server_name2index(svname, &idx, NULL); if (type != LDD_F_SV_TYPE_MDT && type != LDD_F_SV_TYPE_OST) - RETURN(ERR_PTR(-EINVAL)); + RETURN(NULL); /* allocate qsd instance */ OBD_ALLOC_PTR(qsd);