ovl: sync dirty data when remounting to ro mode
authorChengguang Xu <cgxu519@mykernel.net>
Wed, 22 Apr 2020 04:28:43 +0000 (12:28 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 13 May 2020 09:11:24 +0000 (11:11 +0200)
commit399c109d357a7e217cf7ef551e7e234439c68c15
tree6947c756bd5dc797715cba6d75af5c6b610f3512
parentc21c839b8448dd4b1e37ffc1bde928f57d34c0db
ovl: sync dirty data when remounting to ro mode

sync_filesystem() does not sync dirty data for readonly filesystem during
umount, so before changing to readonly filesystem we should sync dirty data
for data integrity.

Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/super.c