commit | 62e42369de376c3eabc2acc92d5cbf8c18870263 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@redhat.com> | Wed Oct 23 14:26:37 2019 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Nov 06 13:06:13 2019 +0100 |
tree | a5158a047e749bc1a9b2926cba3bb04a18889edc | |
parent | 72c913fdde9da6bbad5254b7317efd2000ee6ddb [diff] |
fuse: truncate pending writes on O_TRUNC commit e4648309b85a78f8c787457832269a8712a8673e upstream. Make sure cached writes are not reordered around open(..., O_TRUNC), with the obvious wrong results. Fixes: 4d99ff8f12eb ("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>