summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi2018-12-03 10:14:43 +0100
committerMiklos Szeredi2018-12-03 10:14:43 +0100
commita9c2d1e82fc2937baf43c0d400f0c9e87dcf035d (patch)
tree31886a807776ec79f0f82b16cd76268c37894e35 /fs/fuse/fuse_i.h
parentfuse: Add bad inode check in fuse_destroy_inode() (diff)
downloadkernel-qcow2-linux-a9c2d1e82fc2937baf43c0d400f0c9e87dcf035d.tar.gz
kernel-qcow2-linux-a9c2d1e82fc2937baf43c0d400f0c9e87dcf035d.tar.xz
kernel-qcow2-linux-a9c2d1e82fc2937baf43c0d400f0c9e87dcf035d.zip
fuse: fix fsync on directory
Commit ab2257e9941b ("fuse: reduce size of struct fuse_inode") moved parts of fields related to writeback on regular file and to directory caching into a union. However fuse_fsync_common() called from fuse_dir_fsync() touches some writeback related fields, resulting in a crash. Move writeback related parts from fuse_fsync_common() to fuse_fysnc(). Reported-by: Brett Girton <btgirton@gmail.com> Tested-by: Brett Girton <btgirton@gmail.com> Fixes: ab2257e9941b ("fuse: reduce size of struct fuse_inode") Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index e9f712e81c7d..afe1f231c758 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -828,7 +828,7 @@ void fuse_release_common(struct file *file, int opcode);
* Send FSYNC or FSYNCDIR request
*/
int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
- int datasync, int isdir);
+ int datasync, int opcode);
/**
* Notify poll wakeup