aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2022-12-23 10:41:25 +0000
committerSteve French <stfrench@microsoft.com>2023-02-20 11:48:47 -0600
commit05844bd661d9fd478df1175b6639bf2d9398becb (patch)
treeaba8b3eff3e9ca00288173af05087950e3a08fe0
parent4e551dbdba7015b67f1e7db25a10954d5dc2d123 (diff)
downloadlinux-05844bd661d9fd478df1175b6639bf2d9398becb.tar.gz
cifs: print last update time for interface list
We store the last updated time for interface list while parsing the interfaces. This change is to just print that info in DebugData. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/cifs/cifs_debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index 612f0bb284c96c..1911f7016fa1d5 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -456,8 +456,10 @@ skip_rdma:
spin_lock(&ses->iface_lock);
if (ses->iface_count)
- seq_printf(m, "\n\n\tServer interfaces: %zu",
- ses->iface_count);
+ seq_printf(m, "\n\n\tServer interfaces: %zu"
+ "\tLast updated: %lu seconds ago",
+ ses->iface_count,
+ (jiffies - ses->iface_last_update) / HZ);
j = 0;
list_for_each_entry(iface, &ses->iface_list,
iface_head) {