ovl: plumb through flush method
authorSargun Dhillon <sargun@sargun.me>
Mon, 30 Nov 2020 03:00:39 +0000 (19:00 -0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 12 Apr 2021 10:00:36 +0000 (12:00 +0200)
commit1f0cb8bcc7f96bcd816c80618eb0a7a361c70fbd
tree51adb2d12c155352a78f4e26c56fafb19247e659
parente49d033bddf5b565044e2abe4241353959bc9120
ovl: plumb through flush method

Filesystems can implement their own flush method that release
resources, or manipulate caches. Currently if one of these
filesystems is used with overlayfs, the flush method is not called.

[Amir: fix fd leak in ovl_flush()]

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/file.c