]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifsd: declare ida statically
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 13 Apr 2021 04:06:30 +0000 (13:06 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 19 Apr 2021 00:20:51 +0000 (19:20 -0500)
commite60066ab7c5c4e2dcdc420ec1dc05e1f49eb502b
treedd3da6198e01349e6ee38e14d39402cd384cd2d8
parente440d094b3015eb6d41e80fd4f8af4411054388e
cifsd: declare ida statically

Matthew pointed out that embedding struct ida into the struct is
better than having a pointer to it.
This patch initialise it statically using DEFINE_IDA() or ida_init()
and remove ksmbd_ida_alloc/free().

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/connection.c
fs/cifsd/connection.h
fs/cifsd/ksmbd_work.c
fs/cifsd/mgmt/ksmbd_ida.c
fs/cifsd/mgmt/ksmbd_ida.h
fs/cifsd/mgmt/user_session.c
fs/cifsd/mgmt/user_session.h
fs/cifsd/server.c
fs/cifsd/smb2pdu.c
fs/cifsd/transport_ipc.c