linux/fs/9p
David Howells c60ae98c5a 9p: Fix v9fs_issue_write() to update i_size and remote_i_size
Fix v9fs_issue_write() to update i_size and remote_i_size to the new size
of the server file if we made it larger, using the start fpos and the count
returned by p9_client_write() to calculate the new minimum file size.

This assumes that if the 9P server makes a short write (say it hits
ENOSPC), a reduced count is returned.

Fixes: 5fb70e7275 ("netfs, 9p: Implement helpers for new write code")
Reported-by: Michael Mulqueen <mike@method-b.uk>
Closes: https://lore.kernel.org/r/fbb9e395-1e07-4212-8f70-23f3cd498074@method-b.uk/
Cc: stable@vger.kernel.org
Signed-off-by: David Howells <dhowells@redhat.com>
Message-ID: <2226525.1789118704@warthog.procyon.org.uk>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
2026-09-12 07:49:22 +00:00
..
acl.c posix_acl: make posix_acl_to_xattr() alloc the buffer 2026-01-16 10:51:12 +01:00
acl.h fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
cache.c mm, netfs, fscache: stop read optimisation when folio removed from pagecache 2023-08-18 10:12:13 -07:00
cache.h fs/9p: Rework cache modes and add new options to Documentation 2023-04-09 21:41:21 +00:00
fid.c 9p: Cache negative dentries for lookup performance 2026-06-21 05:22:56 +00:00
fid.h fs/9p: fix the cache always being enabled on files with qid flags 2024-03-28 15:10:29 +00:00
Kconfig 9p: Remove INET dependency 2023-05-04 21:46:57 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
v9fs_vfs.h Asides of the avalanche of LLM-driven fixes, there are a couple of 2026-06-21 10:26:31 -07:00
v9fs.c 9p: Set default negative dentry retention time for cache=loose 2026-06-21 05:22:57 +00:00
v9fs.h 9p: Add mount option for negative dentry cache retention 2026-06-21 05:22:56 +00:00
vfs_addr.c 9p: Fix v9fs_issue_write() to update i_size and remote_i_size 2026-09-12 07:49:22 +00:00
vfs_dentry.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
vfs_dir.c 9p: invalidate readdir buffer on seek 2026-05-19 11:58:18 +00:00
vfs_file.c 9p: v9fs_file_do_lock: replace WARN_ONCE with p9_debug 2026-06-21 05:22:57 +00:00
vfs_inode_dotl.c vfs-7.3-rc1.misc 2026-08-17 12:56:12 -07:00
vfs_inode.c vfs-7.3-rc1.misc 2026-08-17 12:56:12 -07:00
vfs_super.c 9p: Cache negative dentries for lookup performance 2026-06-21 05:22:56 +00:00
xattr.c Bunch of small fixes: 2023-11-04 09:20:04 -10:00
xattr.h 9p: move xattr-related structs to .rodata 2023-10-09 16:24:16 +02:00