From: Alex Elder Date: Fri, 5 Apr 2013 06:27:12 +0000 (-0500) Subject: libceph: format class info at init time X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f562df5f59340eae4272501b974903f48d2ad92;p=pandora-kernel.git libceph: format class info at init time An object class method is formatted using a pagelist which contains the class name, the method name, and the data concatenated into an osd request's outbound data. Currently when a class op is initialized in osd_req_op_cls_init(), the lengths of and pointers to these three items are recorded. Later, when the op is getting formatted into the request message, a new pagelist is created and that is when these items get copied into the pagelist. This patch makes it so the pagelist to hold these items is created when the op is initialized instead. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed