linux/fs/fuse
Miklos Szeredi 93f4021f0d fuse: truncate pending writes on O_TRUNC
commit e4648309b8 upstream.

Make sure cached writes are not reordered around open(..., O_TRUNC), with
the obvious wrong results.

Fixes: 4d99ff8f12 ("fuse: Turn writeback cache on")
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-06 12:43:24 +01:00
..
acl.c fuse: Add posix ACL support 2016-10-01 07:32:32 +02:00
control.c fuse: fix control dir setup and teardown 2018-07-03 11:24:49 +02:00
cuse.c fuse: fix memleak in cuse_channel_open 2019-10-11 18:18:41 +02:00
dev.c fuse: retrieve: cap requested size to negotiated max_write 2019-06-15 11:54:54 +02:00
dir.c fuse: flush dirty data/metadata before non-truncate setattr 2019-11-06 12:43:23 +01:00
file.c fuse: truncate pending writes on O_TRUNC 2019-11-06 12:43:24 +01:00
fuse_i.h fuse: continue to send FUSE_RELEASEDIR when FUSE_OPEN returns ENOSYS 2018-12-21 14:13:05 +01:00
inode.c fuse: Fix oops at process_init_reply() 2018-09-05 09:26:38 +02:00
Kconfig fuse: Add posix ACL support 2016-10-01 07:32:32 +02:00
Makefile fuse: Use generic xattr ops 2016-10-01 07:32:32 +02:00
xattr.c fuse: limit xattr returned size 2016-10-03 11:06:05 +02:00