summaryrefslogtreecommitdiff
path: root/include/linux/ns
diff options
context:
space:
mode:
authorFrank Sorenson <sorenson@redhat.com>2026-07-25 21:04:44 +0000
committerSteve French <stfrench@microsoft.com>2026-07-27 20:46:03 -0500
commitfa724e235cfdb0fb0bb427d0f9dfe864ae27403e (patch)
tree33d5683ef148e78ed1db6eab7c4a0ca28c1abbed /include/linux/ns
parentecababf08905958ba8c125979c4e39fc2f1a8a05 (diff)
cifs: add fscache_resize_cookie() to cifs_setsize()
Several code paths update the VFS inode size by calling netfs_resize_file() and cifs_setsize(), but omit the corresponding fscache_resize_cookie() call, leaving the fscache cookie out of sync with the actual file size: - cifs_file_set_size() in inode.c: server-side truncation via setattr - cifs_do_truncate() in file.c: truncates to zero on O_TRUNC open - smb2_duplicate_extents() in smb2ops.c: file clone extending EOF - smb3_simple_falloc() in smb2ops.c: two branches that extend EOF via write-range and SMB2_set_eof respectively Since every caller of cifs_setsize() must resize the fscache cookie, add the call to cifs_setsize() itself, consistent with how truncate_pagecache() is already consolidated there. Fixes: 70431bfd825d ("cifs: Support fscache indexing rewrite") Fixes: 93a43155127f ("cifs: Fix missing set of remote_i_size") Fixes: 110fee6b9bb5 ("smb: client: fix missing timestamp updates with O_TRUNC") Fixes: 7a06d3b816d7 ("smb/client: emulate small EOF-extending mode 0 fallocate ranges") Cc: stable@vger.kernel.org Cc: David Howells <dhowells@redhat.com> Cc: Paulo Alcantara <pc@manguebit.org> Cc: Huiwen He <hehuiwen@kylinos.cn> Signed-off-by: Frank Sorenson <sorenson@redhat.com> Reviewed-by: Paulo Alcantara <pc@manguebit.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'include/linux/ns')
0 files changed, 0 insertions, 0 deletions