Searched hist:df0e91d488276086bc07da2e389986cae0048c37 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/fuse/ |
H A D | dir.c | diff df0e91d488276086bc07da2e389986cae0048c37 Thu Feb 08 08:17:38 CST 2018 Miklos Szeredi <mszeredi@redhat.com> 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>
|