On Wed, Jul 05, 2023 at 12:23:40PM +0200, Bernd Schubert wrote: > @@ -1377,37 +1375,10 @@ static ssize_t fuse_cache_write_iter(struct kiocb > *iocb, struct iov_iter *from) > if (err) > goto out; > > - if (iocb->ki_flags & IOCB_DIRECT) { > - loff_t pos = iocb->ki_pos; > - written = generic_file_direct_write(iocb, from); After this generic_file_direct_write becomes unused outside of mm/filemap.c, please add a patch to the series to mark it static. > + written = fuse_perform_write(iocb, mapping, from, iocb->ki_pos); > + if (written >= 0) > + iocb->ki_pos += written; This needs to be updated to the new fuse_perform_write calling conventions in Linus tree.