[PATCH 6/7] smb: client: move struct tcon_list to cifsglob.h
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <[email protected]> |
From: Rajasi Mandal <[email protected]> struct tcon_list is a small list-node wrapper that pairs a list_head with a cifs_tcon pointer, used to safely iterate tcons under a superblock outside tlink_tree_lock. It is currently file-static in misc.c, used only by cifs_close_all_deferred_files_sb(). Move it next to the similar struct file_list in cifsglob.h so that other _sb() iteration helpers can reuse it instead of redefining the same shape locally. No functional change. Signed-off-by: Rajasi Mandal <[email protected]> Reviewed-by: Bharath SM <[email protected]> --- fs/smb/client/cifsglob.h | 5 +++++ fs/smb/client/misc.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h index 79e4e84f8985..3bd2a588e7c4 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h @@ -1812,6 +1812,11 @@ struct file_list { struct cifsFileInfo *cfile; }; +struct tcon_list { + struct list_head entry; + struct cifs_tcon *tcon; +}; + struct cifs_mount_ctx { struct cifs_sb_info *cifs_sb; struct smb3_fs_context *fs_ctx; diff --git a/fs/smb/client/misc.c b/fs/smb/client/misc.c index 46e1382e8e04..7fb38f92cd5a 100644 --- a/fs/smb/client/misc.c +++ b/fs/smb/client/misc.c @@ -28,11 +28,6 @@ #include "fs_context.h" #include "cached_dir.h" -struct tcon_list { - struct list_head entry; - struct cifs_tcon *tcon; -}; - /* The xid serves as a useful identifier for each incoming vfs request, in a similar way to the mid which is useful to track each sent smb, and CurrentXid can also provide a running counter (although it -- 2.43.0