From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B37473D7D78 for ; Tue, 16 Jun 2026 05:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781589268; cv=none; b=ED9BzXuyBuzchHazjW5ehs68CLzgEWUDUjJV1BdD2jdz45/gcdIvTqTkprxuPJksqUtJaSJLPxBYxoH1k9nQX0eEEwQFi0yI24DqzZWOdCaeuU2u2lfKgjiewRcJQGGtOWjEG633MS8QcsAyMIe3NVImZITv/3TPqnFCwXXAIZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781589268; c=relaxed/simple; bh=awqTlgpDXXNPiMddpl6/icRCFqOKguUA0X8IxUTpvO8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q/KxrqBgvfZJkHGyQXjTgltsp4Gylrr0Llvfrj4zXSG4yE4DKDWyeF4UW47n6rvRnG76LM5kXRFL28mM2oYXOxRA5uZQfdeYn+y/HJ9yRauraQlzNy+v6K7ruC64CwWjLGLQ9noRUnHlkVGEwR7GSkYLTO5AXBOgK/cN0MJ1vcU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Iyn3WaEy; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Iyn3WaEy" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2c2da7fa321so18395125ad.1 for ; Mon, 15 Jun 2026 22:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781589267; x=1782194067; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=azgFA9QsjHUCJwWt4I+HuOmbFV1W60h2+aAACqXgEZY=; b=Iyn3WaEy4kjLQkto9rg6kkVZ8SR8NfZW7oGsHosH6tr4KLJ9SB28GmHDQar9Dfb5cb RST0FmyRC9Z5yCi5RRdYMT5xhxSfhyYRY2pnzUSBejSCGPQfGGL7S2sRakvGc81HTG3P WErqcUOUU1AkHCK6vB8vOMVGKd2Ogvvjy09FTVsd/RhlvJTr1vPmrHOCogXJYAvlzxuq uyYcGnhGWHs9ZnOlwOGLBVA8bpM1GRmaJV/qzyxrEiDmovc+SOyqHu5QAG/75RxQsZbv JNhilXo4+opNp5NvKRrep6iuT1AEDiLVwJGJ6DlUEbAUy/5Gj4VytFal75K2q5GuRSsJ mdSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781589267; x=1782194067; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=azgFA9QsjHUCJwWt4I+HuOmbFV1W60h2+aAACqXgEZY=; b=c55QESjggZCV0sP+0r4yS0wP+U/XY7oycRZ2dLS+HE4qX93aPl+vsDjwoR+Fh6i67j Fw1PEiy+Ayve4DvVIgTB/EBo96FPkwXYtSJnEM4yHjybvNdyVnoN09VXwYP9i1a8vy5m YLWD5NUMAH1/+XtpeU3ksA5YtuYrhfHMz4K7otT/0lFqmfM2iRZlpnpkvzxSfE1UxDcF n/DK2CbSnx9kTM1AnfbA+DpZsTTOz9ZEzb8Hzz/p6e96Kgr+WR/Wcy8EB1tja1PKyuNW y3K3jwvQua9NNLDNzGXrrBPynyOHDoaqQ9EbZrdqKQibwUwYTAmCyRXjsb9yoQIkiK9n dRPg== X-Forwarded-Encrypted: i=1; AFNElJ8wEjGGZXDjSU5rqxs8ky92j1W4SLIu2q/ygW6I3KJIPVI64dCiVB8IXuOnfGBtb8E+IZjAX5iu/nl31UA=@vger.kernel.org X-Gm-Message-State: AOJu0Yz4Zce+Vvif2UNaNRUff8M1DnpeGO+kzh2eaF8em1luH0NQJHq5 Fq41EppO7/D7vpd4vEjj5NC78FG01bis7+ld2V91VvN+IFOloRT2QobL X-Gm-Gg: Acq92OGG4dhKseC39/5Y2hspZ+VZfD/4/hJfyOwnSBbiIYe6Ck5KKIwVKDNFN95/9Fw ifW/4zqFPdiptrND8cs/CcpGRKTT8/0J/lYdrSXXd7lexEpK/yvn6yK0y0x+R0NeatPyXzfR17c 2jR1+hQCqebJVCnmM4J2XWm5v+U/2Wa7ks7VMwMRkNNrQQEC77ou/22jLYQwGywYoD2ZLAhJ8li psU/neTdrsuX9TnSatEQcDQQRMRrqcD3wlmvgbr2XZTgPsmNIpaz2kZxAbZz5xkKa9QJAZKVnju UFnXbqvYHbEOh7Jsx8KkaCu+sSludoCXrSAHP4XpwJe6eThr2sI+XNJs9FHn0xJyw6XECLHEKCT jKQA/86gGq6w1GUxz3ApngI6kfX1orHPnCmXoqSyG7nUu9LGGVNXhtid+f27Q2XUVYU6qlGiClo 2pk3gX3R5RQCSz2CkKWBy+YUj7i4kUalDMdHDtffxa+8oUWaUiYSVVB8RShPU0mz9NV075Xy5bv fWbNkWvhC/Cb+3ubc+OYCc= X-Received: by 2002:a17:902:d4cf:b0:2c0:c3ac:4ae6 with SMTP id d9443c01a7336-2c41255a61amr194244855ad.19.1781589267008; Mon, 15 Jun 2026 22:54:27 -0700 (PDT) Received: from dev-vm-rm.hzz4ddxqtfeetjrh00qlbgyytb.rx.internal.cloudapp.net ([20.197.52.255]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c42f2e52b5sm120805275ad.7.2026.06.15.22.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2026 22:54:26 -0700 (PDT) From: rajasimandalos@gmail.com To: Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Bharath SM Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, Meetakshi Setiya , Rajasi Mandal Subject: [PATCH v4 6/7] smb: client: move struct tcon_list to cifsglob.h Date: Tue, 16 Jun 2026 05:53:56 +0000 Message-ID: <20260616055357.3798387-7-rajasimandalos@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260616055357.3798387-1-rajasimandalos@gmail.com> References: <20260616055357.3798387-1-rajasimandalos@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Rajasi Mandal 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 Reviewed-by: Bharath SM --- 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 a462c1590a9e..38e27ba6d8f6 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h @@ -1807,6 +1807,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 0c54b9b79a2c..7ef135dc8268 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