Whamcloud - gitweb
LU-6775 ldlm: reduce mem footprint of ldlm_resource 85/15485/4
authorNiu Yawei <yawei.niu@intel.com>
Fri, 3 Jul 2015 09:49:58 +0000 (05:49 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 10 Jul 2015 03:23:57 +0000 (03:23 +0000)
commit8cf860b866005c5907e8e7a0ded92cc481fdb6c3
treee7e2f53c9509b6c8319c416691d1336641a059fa
parentfd6f11c92e2f6f54384d1ebd3474a77b0c0ded95
LU-6775 ldlm: reduce mem footprint of ldlm_resource

- Removing the unused lr_most_restr, reduced 4 bytes;
- Allocating lr_itree only for LDLM_EXTENT resource, reduced
  120 bytes;
- Moving fields around to eliminate holes, eliminated 3 holes,
  reduced 4 bytes;
- Making lr_contention_time and lr_lvb_inode into union,
  reduced 8 bytes;

Reduced 136 bytes in total.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I232a2669d9f5eaee35eb9ff8313d86d4ac297bc1
Reviewed-on: http://review.whamcloud.com/15485
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_resource.c