Files
Christoph Hellwig 69edc239e7 UPSTREAM: 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.

Change-Id: I802ab81974c81adb42b392ce7ffdc3fdc816f513
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>
Signed-off-by: Jianing Ren <jianing.ren@rock-chips.com>
(cherry picked from commit 1ae1602de0)
2020-05-06 14:35:50 +08:00
..