diff options
| author | Amir Goldstein <amir73il@gmail.com> | 2024-10-14 21:27:58 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-01 02:02:38 +0100 |
| commit | e4b6e1f1ba5e16d53ae95a1b476a7e9b0622aa1d (patch) | |
| tree | f006663aea6447218440c798cafa1d71b27fdf1c /include | |
| parent | d4f38a0e7cc94615f63cf7765ca117e5cc2773ae (diff) | |
| download | linux-e4b6e1f1ba5e16d53ae95a1b476a7e9b0622aa1d.tar.gz linux-e4b6e1f1ba5e16d53ae95a1b476a7e9b0622aa1d.tar.bz2 linux-e4b6e1f1ba5e16d53ae95a1b476a7e9b0622aa1d.zip | |
fs: pass offset and result to backing_file end_write() callback
[ Upstream commit f03b296e8b516dbd63f57fc9056c1b0da1b9a0ff ]
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>
Stable-dep-of: 20121d3f58f0 ("fuse: update inode size after extending passthrough write")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/backing-file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/backing-file.h b/include/linux/backing-file.h index 4b61b0e57720..2eed0ffb5e8f 100644 --- a/include/linux/backing-file.h +++ b/include/linux/backing-file.h @@ -16,7 +16,7 @@ struct backing_file_ctx { const struct cred *cred; struct file *user_file; void (*accessed)(struct file *); - void (*end_write)(struct file *); + void (*end_write)(struct file *, loff_t, ssize_t); }; struct file *backing_file_open(const struct path *user_path, int flags, |
