Whamcloud - gitweb
LU-744 clio: save memory allocations for cl_page
authorJinshan Xiong <jinshan.xiong@intel.com>
Thu, 20 Dec 2012 02:07:45 +0000 (18:07 -0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 26 Jan 2013 02:45:39 +0000 (21:45 -0500)
commit3bffa4d32bc5b0bc71ba6873e262ddbca436bae1
tree81fa48c492e5fa43be2a890e9a6929a315e85896
parent91a4769006f1318bcaddf6ace4344b980f701e05
LU-744 clio: save memory allocations for cl_page

It used to allocate 6 piece of memory to create a page:
 - top cl_page, llite & lov page slice;
 - subpage, lovsub_page & osc_page.

This patch will allocate top cl_page, llite and lov page slice in
the same piece of memory, similar to sub pages, so that only 2
memory allocations will be needed for each page.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I1c4dd0541bda23e7d739131f73bcd895b8dd2c13
Reviewed-on: http://review.whamcloud.com/4943
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
21 files changed:
libcfs/include/libcfs/posix/libcfs.h
lustre/include/cl_object.h
lustre/lclient/lcommon_cl.c
lustre/liblustre/llite_cl.c
lustre/llite/lloop.c
lustre/llite/vvp_dev.c
lustre/llite/vvp_internal.h
lustre/llite/vvp_page.c
lustre/lov/lov_cl_internal.h
lustre/lov/lov_dev.c
lustre/lov/lov_object.c
lustre/lov/lov_page.c
lustre/lov/lovsub_object.c
lustre/lov/lovsub_page.c
lustre/obdclass/cl_object.c
lustre/obdclass/cl_page.c
lustre/obdecho/echo_client.c
lustre/osc/osc_cl_internal.h
lustre/osc/osc_dev.c
lustre/osc/osc_object.c
lustre/osc/osc_page.c