exfat: remove EXFAT_SB_DIRTY flag
authorTetsuhiro Kohada <kohada.t2@gmail.com>
Tue, 16 Jun 2020 02:18:07 +0000 (11:18 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 11 Aug 2020 23:31:10 +0000 (08:31 +0900)
commit2c7f8937ef91520a8a4bd700d5817b5e9c99803c
tree8075803b38b022804c20facd743bdafaf4181e9b
parentbcf876870b95592b52519ed4aafcf9d95999bc9c
exfat: remove EXFAT_SB_DIRTY flag

This flag is set/reset in exfat_put_super()/exfat_sync_fs()
to avoid sync_blockdev().
- exfat_put_super():
Before calling this, the VFS has already called sync_filesystem(),
so sync is never performed here.
- exfat_sync_fs():
After calling this, the VFS calls sync_blockdev(), so, it is meaningless
to check EXFAT_SB_DIRTY or to bypass sync_blockdev() here.

Remove the EXFAT_SB_DIRTY check to ensure synchronization.
And remove the code related to the flag.

Signed-off-by: Tetsuhiro Kohada <kohada.t2@gmail.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/balloc.c
fs/exfat/dir.c
fs/exfat/exfat_fs.h
fs/exfat/fatent.c
fs/exfat/misc.c
fs/exfat/namei.c
fs/exfat/super.c