smb: client: stop revalidating reparse points unnecessarily
authorSteve French <stfrench@microsoft.com>
Sun, 28 Jan 2024 22:35:42 +0000 (16:35 -0600)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Jan 2024 22:35:42 +0000 (16:35 -0600)
commite071725d1a326cf86bcb6b1e961b916674e7e7ef
treee285f39bb5d88da6684c7d551fbfd233cedd1765
parent432c856889bc667e951b3c78bf36ece94348de52
smb: client: stop revalidating reparse points unnecessarily

Query dir responses don't provide enough information on reparse points
such as major/minor numbers and symlink targets other than reparse
tags, however we don't need to unconditionally revalidate them only
because they are reparse points.  Instead, revalidate them only when
their ctime or reparse tag has changed.

For instance, Windows Server updates ctime of reparse points when
their data have changed.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/inode.c
fs/cifs/readdir.c