]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb: client: stop revalidating reparse points unnecessarily
authorPaulo Alcantara <pc@manguebit.com>
Sat, 6 Jan 2024 23:05:17 +0000 (20:05 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 7 Jan 2024 21:46:06 +0000 (15:46 -0600)
commit6d039984c15d1ea1ca080176df6dfab443e44585
treef8c12ce59bfa288294663eb0a1b4d665992d5608
parent6ebfede8d57a615dcbdec7e490faed585153f7f1
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/smb/client/cifsglob.h
fs/smb/client/inode.c
fs/smb/client/readdir.c