linux/fs/smb/client
David Howells 852698c9fd cifs: Fix duplicate fscache cookie warnings
[ Upstream commit 8876a37277 ]

fscache emits a lot of duplicate cookie warnings with cifs because the
index key for the fscache cookies does not include everything that the
cifs_find_inode() function does.  The latter is used with iget5_locked() to
distinguish between inodes in the local inode cache.

Fix this by adding the creation time and file type to the fscache cookie
key.

Additionally, add a couple of comments to note that if one is changed the
other must be also.

Signed-off-by: David Howells <dhowells@redhat.com>
Fixes: 70431bfd82 ("cifs: Support fscache indexing rewrite")
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-10 16:28:23 +02:00
..
asn1.c
cached_dir.c cifs: open_cached_dir(): add FILE_READ_EA to desired access 2024-04-03 15:19:37 +02:00
cached_dir.h
cifs_debug.c smb: client: fix potential OOB in cifs_dump_detail() 2024-01-01 12:39:04 +00:00
cifs_debug.h
cifs_dfs_ref.c cifs: use fs_context for automounts 2023-09-19 12:28:00 +02:00
cifs_fs_sb.h
cifs_ioctl.h smb3: allow dumping session and tcon id to improve stats analysis and debugging 2023-12-03 07:32:09 +01:00
cifs_spnego_negtokeninit.asn1
cifs_spnego.c cifs: spnego: add ';' in HOST_KEY_LEN 2023-11-28 17:07:06 +00:00
cifs_spnego.h
cifs_swn.c
cifs_swn.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c smb: Work around Clang __bdos() type confusion 2024-03-01 13:26:26 +01:00
cifsfs.c cifs: fix flushing folio regression for 6.1 backport 2024-01-15 18:54:51 +01:00
cifsfs.h cifs: minor cleanup of some headers 2023-12-03 07:32:09 +01:00
cifsglob.h smb: client: increase number of PDUs allowed in a compound request 2024-03-01 13:26:28 +01:00
cifspdu.h smb: client, common: fix fortify warnings 2024-01-20 11:50:04 +01:00
cifsproto.h smb: client: fix potential deadlock when releasing mids 2023-11-28 17:07:15 +00:00
cifsroot.c
cifssmb.c smb: client, common: fix fortify warnings 2024-01-20 11:50:04 +01:00
connect.c cifs: cifs_chan_is_iface_active should be called with chan_lock held 2024-01-10 17:10:21 +01:00
dfs_cache.c
dfs_cache.h
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: Release folio lock on fscache read hit. 2023-08-23 17:52:39 +02:00
fs_context.c smb3: clarify mount warning 2024-03-01 13:26:30 +01:00
fs_context.h
fscache.c cifs: Fix duplicate fscache cookie warnings 2024-04-10 16:28:23 +02:00
fscache.h
inode.c cifs: Fix duplicate fscache cookie warnings 2024-04-10 16:28:23 +02:00
ioctl.c smb3: allow dumping session and tcon id to improve stats analysis and debugging 2023-12-03 07:32:09 +01:00
Kconfig
link.c
Makefile
misc.c smb: client: fix OOB in smbCalcSize() 2024-01-01 12:39:05 +00:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c smb: client: set correct d_type for reparse points under DFS mounts 2024-03-01 13:26:30 +01:00
rfc1002pdu.h
sess.c cifs: failure to add channel on iface should bump up weight 2024-02-16 19:06:25 +01:00
smb1ops.c
smb2file.c smb3: Replace smb2pdu 1-element arrays with flex-arrays 2024-01-10 17:10:37 +01:00
smb2glob.h
smb2inode.c smb: client: fix broken file attrs with nodfs mounts 2023-07-19 16:21:44 +02:00
smb2maperror.c
smb2misc.c smb: client: fix potential OOB in smb2_dump_detail() 2024-01-20 11:50:09 +01:00
smb2ops.c cifs: fix underflow in parse_server_interfaces() 2024-02-23 09:12:35 +01:00
smb2pdu.c smb: client: set correct d_type for reparse points under DFS mounts 2024-03-01 13:26:30 +01:00
smb2pdu.h smb: client, common: fix fortify warnings 2024-01-20 11:50:04 +01:00
smb2proto.h smb: client: fix potential OOBs in smb2_parse_contexts() 2024-02-23 09:12:50 +01:00
smb2status.h
smb2transport.c cifs: fix check of rc in function generate_smb3signingkey 2023-11-28 17:07:07 +00:00
smbdirect.c
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h
transport.c smb: client: increase number of PDUs allowed in a compound request 2024-03-01 13:26:28 +01:00
unc.c
winucase.c
xattr.c smb3: fix caching of ctime on setxattr 2023-11-28 17:07:15 +00:00