diff options
| author | Hungyu Lin <dennylin0707@gmail.com> | 2026-11-03 08:34:25 +0000 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-11-20 13:46:29 +0100 |
| commit | d9013d15b9379b323f1bcdfff7e7d96df537268a (patch) | |
| tree | b621a95eb02744bd0570382e4ed0ca198c17432d /scripts/bash-completion | |
| parent | 71b2cafb76c62c0f800daa94fc4c8f32936a4fbb (diff) | |
fuse: clear the old EOF tail before writeback-cache writes
Buffered writeback-cache writes go through iomap_file_buffered_write(),
but do not clear cached data between the old EOF and the write position.
If a shared mapping dirtied the tail of the old EOF page, an extending
write can expose those bytes as file contents instead of zeros. A later
writeback can also send them to the server.
Clear the gap under the existing inode lock before the buffered write.
Use the same page-cache cleanup as fuse_perform_write() does for
write-through writes, leaving the write range itself untouched.
Fixes: 4d99ff8f12eb ("fuse: Turn writeback cache on")
Cc: stable@vger.kernel.org
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'scripts/bash-completion')
0 files changed, 0 insertions, 0 deletions
