]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
configfs: switch ->default groups to a linked list
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Feb 2016 10:02:14 +0000 (11:02 +0100)
committerChristoph Hellwig <hch@lst.de>
Sun, 6 Mar 2016 15:11:24 +0000 (16:11 +0100)
commit1ae1602de028acaa42a0f6ff18d19756f8e825c6
tree3370e5c29945370f62b9c72adeec587ed102d048
parentb1f1a29d8fb5eeaeec2cafe4c62f276d950c015b
configfs: switch ->default groups to a linked list

Replace the current NULL-terminated array of default groups with a linked
list.  This gets rid of lots of nasty code to size and/or dynamically
allocate the array.

While we're at it also provide a conveniant helper to remove the default
groups.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Felipe Balbi <balbi@kernel.org> [drivers/usb/gadget]
Acked-by: Joel Becker <jlbec@evilplan.org>
Acked-by: Nicholas Bellinger <nab@linux-iscsi.org>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
17 files changed:
Documentation/filesystems/configfs/configfs.txt
drivers/infiniband/core/cma_configfs.c
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/target_core_configfs.c
drivers/target/target_core_fabric_configfs.c
drivers/target/target_core_internal.h
drivers/target/target_core_stat.c
drivers/usb/gadget/configfs.c
drivers/usb/gadget/function/f_mass_storage.c
drivers/usb/gadget/function/f_rndis.c
drivers/usb/gadget/function/uvc_configfs.c
fs/configfs/dir.c
fs/configfs/item.c
fs/dlm/config.c
fs/ocfs2/cluster/nodemanager.c
include/linux/configfs.h
include/target/target_core_base.h