fuse: always flush dirty data on close(2)
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:37 +0000 (14:50 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:37 +0000 (14:50 +0200)
commit614c026e8a46636198da93ec30719f93975bb26a
tree08b49a20094cb7c3784fb850e35602c2f1cfe986
parentcf576c58b3a283333fc6e9a7c1c8e5342fa59b97
fuse: always flush dirty data on close(2)

We want cached data to synced with the userspace filesystem on close(), for
example to allow getting correct st_blocks value.  Do this regardless of
whether the userspace filesystem implements a FLUSH method or not.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c