Whamcloud - gitweb
LU-1876 ldlm: extend ldlm_valblock_ops{}
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Mon, 17 Sep 2012 16:41:20 +0000 (09:41 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Sep 2012 03:08:31 +0000 (23:08 -0400)
commitead6026e66b8fc96ac0c93924f5b5e8d2e7bb322
tree524aeb4c8711cfd017887cc619173931c497c199
parent905833527e0dd91d179b79387bcb26a9af28a7ff
LU-1876 ldlm: extend ldlm_valblock_ops{}

To extend the usage of RQF_DLM_LVB for quota, layout lock and nano
seconds, two extra callbacks will be added:
 - lvbo_size: determine the size of lvb data
 - lvbo_fill: fill in RPC buffer by lvb data

Also framework of mdt_lvb is added for future extension.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: I2b3022525f8fbef72549a25766aa73d94b8b997c
Reviewed-on: http://review.whamcloud.com/3960
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lockd.c
lustre/mdt/Makefile.in
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lvb.c [new file with mode: 0644]
lustre/obdfilter/filter_lvb.c
lustre/ofd/ofd_lvb.c