Whamcloud - gitweb
LU-550 incorrect quota hash function
authorNiu Yawei <niu@whamcloud.com>
Fri, 29 Jul 2011 04:00:09 +0000 (21:00 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 12 Aug 2011 16:00:49 +0000 (12:00 -0400)
commitd24dce9f96591cf63d7c1ab22c36b9aed16a4ef2
treea78edded6d9b2eb6d50f48b8ecf56fca1a7ff851
parent64f0f965dc80556739a3f86c15c0bb158b6289a2
LU-550 incorrect quota hash function

Quota code uses 'uid' or '(1 << 32) + gid' as the hash key, however,
the quota hash function lqs_hash() always try to interpret such a
unsigned long long key as a 'quota_adjust_qunit' struct, then calculate
the hash value by quota_adjust_qunit->qaq_id.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I48dc7f276eb97f34b22097b4edc529d5f76acf37
Reviewed-on: http://review.whamcloud.com/1162
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/quota/quota_context.c