]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb91ec10c491defc1caace69cc6eb46217a12010e
tree08b49a20094cb7c3784fb850e35602c2f1cfe986
parent6fef685b89b8221c2b9f14377956b950847b59f1
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