smb: client: reduce stack usage in smb2_set_ea()
authorPaulo Alcantara <pc@manguebit.com>
Thu, 17 Aug 2023 15:34:13 +0000 (12:34 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 20 Aug 2023 21:05:50 +0000 (16:05 -0500)
commitf4e5ceb6c1a64f9f8c666877164d95d5eb46da5b
tree5a549fcf13a60ba562045911f3e92fd6f05c04ce
parent933148a47c8b3db569cb92888571a57b8c171f3b
smb: client: reduce stack usage in smb2_set_ea()

Clang warns about exceeded stack frame size

  fs/smb/client/smb2ops.c:1080:1: warning: stack frame size (1432)
  exceeds limit (1024) in 'smb2_set_ea' [-Wframe-larger-than]

Fix this by allocating a structure that will hold most of the large
variables.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h
fs/smb/client/smb2inode.c
fs/smb/client/smb2ops.c