Whamcloud - gitweb
LU-181 obdclass: fix portal_handle memory wastage
authorLiang Zhen <liang@whamcloud.com>
Fri, 9 Dec 2011 06:33:15 +0000 (14:33 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 May 2012 05:29:57 +0000 (01:29 -0400)
commit1069f0832fe33a6944bcba0773ae4241949f970c
treea017bc548b34f1263be9bce230a4d42ae72bb556
parentdd1a1955ecaaa17d4bcba822023d4c78bb10ce6c
LU-181 obdclass: fix portal_handle memory wastage

This patch is the first step of fixing memory wastage in Lustre.
We can save 20 bytes for each portals_handle(on 64bits system)
by reusing members, which could be over a hundred megabytes
on system with millions of ldlm_locks because portals_handle is
embedded in ldlm_lock.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: I401c0c0c2fc8d2624fd48c714dc3d06fc0e4e21e
Reviewed-on: http://review.whamcloud.com/1827
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_export.h
lustre/include/lustre_handles.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_lock.c
lustre/lov/lov_internal.h
lustre/lov/lov_request.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/obdclass/genops.c
lustre/obdclass/lustre_handles.c