Whamcloud - gitweb
LU-1057 quota: speed up lookup in osc_quota_chkdq
authorHongchao Zhang <hongchao.zhang@whamcloud.com>
Thu, 12 Jul 2012 07:23:18 +0000 (15:23 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 Jul 2012 16:17:32 +0000 (12:17 -0400)
commit1b044fecb42c1f72ca2d2bc2bf80a4345b9ccf11
treef358e842523333eb963b6a16a460ee1a0fe0e0d2
parent27be04d33db216e576486b2db6e1cb54aed60006
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: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Change-Id: Ibf0785a60b007f33a8660298159abcc387dd8507
Reviewed-on: http://review.whamcloud.com/2074
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/obd.h
lustre/osc/osc_dev.c
lustre/osc/osc_internal.h
lustre/osc/osc_quota.c
lustre/osc/osc_request.c