]> git.karo-electronics.de Git - linux-beck.git/commit
target/configfs: allocate pointers instead of full struct for default_groups
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 27 Nov 2012 17:54:19 +0000 (18:54 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 28 Nov 2012 06:49:22 +0000 (22:49 -0800)
commit1c98d2f439f3f945c5040fd648d817e86314f2fa
tree269e544adbc4c422e010354351a5407425a9c948
parent6b64e1fe2ba80ac3ce12a21f1200bac594fa1a1c
target/configfs: allocate pointers instead of full struct for default_groups

default_groups is defined as struct config_group **default_groups so
we don't need to allocate a whole struct but only enough space for a
pointer that points there.

(nab: Fix up minor apply breakage in for-next)

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/target_core_configfs.c
drivers/target/target_core_fabric_configfs.c