Whamcloud - gitweb
LU-1057 quota: speed up lookup in osc_quota_chkdq
authorGregoire Pichon <gregoire.pichon@bull.net>
Thu, 4 Oct 2012 14:55:26 +0000 (16:55 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Oct 2012 23:05:05 +0000 (19:05 -0400)
commitb9250b228d59e3e1172391c3b2baca96803abfc6
tree21dd5adb13e3c36ce71c25c8974db1b36399569c
parent4e8c1e3839365fd23c3fcaac35edf71de9c8d1a6
LU-1057 quota: speed up lookup in osc_quota_chkdq

This patch replace the global hash table used to store uid/gid
about to run out of quota space with a per-OSC cfs_hash.

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: If291ce125d79312ba7abc182a5561657fa63b6bd
Reviewed-on: http://review.whamcloud.com/4184
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
lustre/include/obd.h
lustre/osc/osc_request.c
lustre/quota/quota_interface.c