Whamcloud - gitweb
LU-550 incorrect quota hash function
authorNiu Yawei <niu@whamcloud.com>
Fri, 29 Jul 2011 04:19:41 +0000 (21:19 -0700)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 9 Aug 2011 22:18:52 +0000 (18:18 -0400)
commit69d748be13bda3e160c8f3328659ee7e7b2e8ac8
treea93df3c1192566e47e0a2a49701470207e5e19c6
parentd294d3d067478cd22d7b21aa84b378399457a807
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: I128f2835ff590d712b0a1641af7361146e8e3e81
Reviewed-on: http://review.whamcloud.com/1163
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/quota/quota_context.c