aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2013-05-16 10:41:02 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2013-06-14 00:04:58 -0700
commit459f213ba162bd13e113d6f92a8fa6c780fd67ed (patch)
tree113fa4c5426487154a231c0f47a24cfca01f5ae3 /crypto
parenttarget: Delete incorrect comment (diff)
downloadlinux-dev-459f213ba162bd13e113d6f92a8fa6c780fd67ed.tar.xz
linux-dev-459f213ba162bd13e113d6f92a8fa6c780fd67ed.zip
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 <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions