]> git.baikalelectronics.ru Git - kernel.git/commit
exfat: call sync_filesystem for read-only remount
authorHyunchul Lee <hyc.lee@gmail.com>
Tue, 16 Jun 2020 05:34:45 +0000 (14:34 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 29 Jun 2020 08:11:08 +0000 (17:11 +0900)
commit1840557ade1d250751e82baaefe965c06d8dd323
treee0efb71a4fa40845babf0d630be9a9634ff24d03
parentfb4a37ae8bf0ec343e854f039debff192375c73d
exfat: call sync_filesystem for read-only remount

We need to commit dirty metadata and pages to disk
before remounting exfat as read-only.

This fixes a failure in xfstests generic/452

generic/452 does the following:
cp something <exfat>/
mount -o remount,ro <exfat>

the <exfat>/something is corrupted. because while
exfat is remounted as read-only, exfat doesn't
have a chance to commit metadata and
vfs invalidates page caches in a block device.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/super.c