summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorMiklos Szeredi2018-02-08 15:17:38 +0100
committerMiklos Szeredi2018-03-20 17:11:43 +0100
commitdf0e91d488276086bc07da2e389986cae0048c37 (patch)
treeb02f6993a75e9f16f10299613e6e9e7ff51869ae /include/uapi
parentLinux 4.16-rc6 (diff)
downloadkernel-qcow2-linux-df0e91d488276086bc07da2e389986cae0048c37.tar.gz
kernel-qcow2-linux-df0e91d488276086bc07da2e389986cae0048c37.tar.xz
kernel-qcow2-linux-df0e91d488276086bc07da2e389986cae0048c37.zip
fuse: atomic_o_trunc should truncate pagecache
Fuse has an "atomic_o_trunc" mode, where userspace filesystem uses the O_TRUNC flag in the OPEN request to truncate the file atomically with the open. In this mode there's no need to send a SETATTR request to userspace after the open, so fuse_do_setattr() checks this mode and returns. But this misses the important step of truncating the pagecache. Add the missing parts of truncation to the ATTR_OPEN branch. Reported-by: Chad Austin <chadaustin@fb.com> Fixes: 6ff958edbf39 ("fuse: add atomic open+truncate support") Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions