target: Rename core_tpg_{pre,post}_addlun for clarity
authorAndy Grover <agrover@redhat.com>
Tue, 26 Nov 2013 20:07:54 +0000 (12:07 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 16 Dec 2013 21:28:19 +0000 (13:28 -0800)
commitd344f8a15637e8b57a0d05a6d50182c11de08606
treee4dc624eec2f9e2e8794d865f8ab62153666a72a
parent2af7973a37059c92330014ee5f39adc94900e7e1
target: Rename core_tpg_{pre,post}_addlun for clarity

"pre" is really an allocation function. The only time it isn't called is
for virtual_lun0, which is statically allocated. Renaming that to "alloc"
lets the other function not need to be "post", and just be called
core_tpg_add_lun.

(nab: fix minor applying fuzz in core_tpg_setup_virtual_lun0)

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_internal.h
drivers/target/target_core_tpg.c