From: Andy Grover Date: Thu, 16 May 2013 17:41:02 +0000 (-0700) Subject: target: Allocate aptpl_buf inside update_and_write_aptpl() X-Git-Tag: v3.11-rc1~22^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=459f213ba162bd13e113d6f92a8fa6c780fd67ed;p=pandora-kernel.git target: Allocate aptpl_buf inside update_and_write_aptpl() Instead of taking the buffer and length, update_and_write_aptpl() will allocate the buffer as needed, and then free it. Instead, the function takes an 'aptpl' boolean parameter. This enables us to remove memory alloc/frees from struct t10_pr_registration and other spots. There is a slight loss of functionality because each callsite doesn't get its own pr_debug any more, but this info can be cleaned via ftrace if necessary and I think the shorter code is worth it. Signed-off-by: Andy Grover Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed