Skip to content
Commit a9c2d1e8 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: fix fsync on directory



Commit ab2257e9 ("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: default avatarBrett Girton <btgirton@gmail.com>
Tested-by: default avatarBrett Girton <btgirton@gmail.com>
Fixes: ab2257e9 ("fuse: reduce size of struct fuse_inode")
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 4fc4bb79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment