diff options
| author | Amir Goldstein <amir73il@gmail.com> | 2024-10-14 21:27:58 +0200 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-10-16 13:17:45 +0200 |
| commit | f03b296e8b516dbd63f57fc9056c1b0da1b9a0ff (patch) | |
| tree | f2e16ccf5ae1e7959dfb7175db0bf4433ef614d5 /fs/fuse | |
| parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) | |
| download | ath-f03b296e8b516dbd63f57fc9056c1b0da1b9a0ff.tar.gz | |
fs: pass offset and result to backing_file end_write() callback
This is needed for extending fuse inode size after fuse passthrough write.
Suggested-by: Miklos Szeredi <miklos@szeredi.hu>
Link: https://lore.kernel.org/linux-fsdevel/CAJfpegs=cvZ_NYy6Q_D42XhYS=Sjj5poM1b5TzXzOVvX=R36aA@mail.gmail.com/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse')
| -rw-r--r-- | fs/fuse/passthrough.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fuse/passthrough.c b/fs/fuse/passthrough.c index 62aee8289d110..e4e92abe1601d 100644 --- a/fs/fuse/passthrough.c +++ b/fs/fuse/passthrough.c @@ -18,7 +18,7 @@ static void fuse_file_accessed(struct file *file) fuse_invalidate_atime(inode); } -static void fuse_file_modified(struct file *file) +static void fuse_passthrough_end_write(struct file *file, loff_t pos, ssize_t ret) { struct inode *inode = file_inode(file); @@ -63,7 +63,7 @@ ssize_t fuse_passthrough_write_iter(struct kiocb *iocb, struct backing_file_ctx ctx = { .cred = ff->cred, .user_file = file, - .end_write = fuse_file_modified, + .end_write = fuse_passthrough_end_write, }; pr_debug("%s: backing_file=0x%p, pos=%lld, len=%zu\n", __func__, @@ -110,7 +110,7 @@ ssize_t fuse_passthrough_splice_write(struct pipe_inode_info *pipe, struct backing_file_ctx ctx = { .cred = ff->cred, .user_file = out, - .end_write = fuse_file_modified, + .end_write = fuse_passthrough_end_write, }; pr_debug("%s: backing_file=0x%p, pos=%lld, len=%zu, flags=0x%x\n", __func__, |
