diff options
author | Steve French <stfrench@microsoft.com> | 2023-09-19 19:35:53 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-09-19 21:32:02 +0300 |
commit | 2da338ff752a2789470d733111a5241f30026675 (patch) | |
tree | 06b78b25341ba966454dc9a641c825e5f42abf80 /fs/smb/client/cifsproto.h | |
parent | e3603ccf4a35fdf433ee7b60bb7cfb598f19c8fa (diff) | |
download | linux-2da338ff752a2789470d733111a5241f30026675.tar.xz |
smb3: do not start laundromat thread when dir leases
disabled
When no directory lease support, or for IPC shares where directories
can not be opened, do not start an unneeded laundromat thread for
that mount (it wastes resources).
Fixes: d14de8067e3f ("cifs: Add a laundromat thread for cached directories")
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Acked-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsproto.h')
-rw-r--r-- | fs/smb/client/cifsproto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/cifsproto.h b/fs/smb/client/cifsproto.h index 7d8035846680..0c37eefa18a5 100644 --- a/fs/smb/client/cifsproto.h +++ b/fs/smb/client/cifsproto.h @@ -512,7 +512,7 @@ extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses); extern struct cifs_ses *sesInfoAlloc(void); extern void sesInfoFree(struct cifs_ses *); -extern struct cifs_tcon *tconInfoAlloc(void); +extern struct cifs_tcon *tcon_info_alloc(bool dir_leases_enabled); extern void tconInfoFree(struct cifs_tcon *); extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, |