cifsd: use xarray instead of linked list for tree connect list
authorNamjae Jeon <namjae.jeon@samsung.com>
Thu, 1 Apr 2021 08:45:33 +0000 (17:45 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:34 +0000 (19:15 -0500)
commit02b68b2065c91ce706f462fd509032a77db5d9dc
tree82db53b5ac33c604aec9c1ded0cea98f263fc144
parent8044ee8e64b4fdb068e504ec3ade597d1ccad456
cifsd: use xarray instead of linked list for tree connect list

Matthew suggest to change linked list of tree connect list to xarray.
It will be tree connect lookup in O(log(n)) time instead of O(n) time.

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