X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fquota%2Flquota_entry.c;h=ee73c16374114bd96cd575ca24d9b843570eff03;hb=31170f9ceca91684ea66e0b16757881563a8cf26;hp=3cc8fb2709d9e1a7119cb5b4ef03868b77b40cd1;hpb=4b0c3835568b292c53f558af6c46c08508d6cde2;p=fs%2Flustre-release.git diff --git a/lustre/quota/lquota_entry.c b/lustre/quota/lquota_entry.c index 3cc8fb2..ee73c16 100644 --- a/lustre/quota/lquota_entry.c +++ b/lustre/quota/lquota_entry.c @@ -228,7 +228,11 @@ struct lquota_site *lquota_site_alloc(const struct lu_env *env, void *parent, HASH_LQE_BKT_BITS), 0, CFS_HASH_MIN_THETA, CFS_HASH_MAX_THETA, &lqe64_hash_ops, - CFS_HASH_DEFAULT|CFS_HASH_BIGNAME); + CFS_HASH_RW_SEM_BKTLOCK | + CFS_HASH_COUNTER | + CFS_HASH_REHASH | + CFS_HASH_BIGNAME); + if (site->lqs_hash == NULL) { OBD_FREE_PTR(site); RETURN(ERR_PTR(-ENOMEM));