diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-30 12:35:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-30 12:35:11 -0700 |
commit | edb543cfe5db6148935a383aeef4d0bfd240216c (patch) | |
tree | 19768c4ffd99834a4a01d5f5e339a2f74384c6d0 /fs/exfat/super.c | |
parent | 615bc218d628d90a3afebcfa772aa41865acd301 (diff) | |
parent | 5267456e953fd8c5abd8e278b1cc6a9f9027ac0a (diff) | |
download | linux-edb543cfe5db6148935a383aeef4d0bfd240216c.tar.gz linux-edb543cfe5db6148935a383aeef4d0bfd240216c.tar.bz2 linux-edb543cfe5db6148935a383aeef4d0bfd240216c.zip |
Merge tag 'exfat-for-5.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat
Pull exfat fixes from Namjae Jeon:
- Zero out unused characters of FileName field to avoid a complaint
from some fsck tool.
- Fix memory leak on error paths.
- Fix unnecessary VOL_DIRTY set when calling rmdir on non-empty
directory.
- Call sync_filesystem() for read-only remount (Fix generic/452 test in
xfstests)
- Add own fsync() to flush dirty metadata.
* tag 'exfat-for-5.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
exfat: flush dirty metadata in fsync
exfat: move setting VOL_DIRTY over exfat_remove_entries()
exfat: call sync_filesystem for read-only remount
exfat: add missing brelse() calls on error paths
exfat: Set the unused characters of FileName field to the value 0000h
Diffstat (limited to 'fs/exfat/super.c')
-rw-r--r-- | fs/exfat/super.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/exfat/super.c b/fs/exfat/super.c index e650e65536f8..253a92460d52 100644 --- a/fs/exfat/super.c +++ b/fs/exfat/super.c @@ -693,10 +693,20 @@ static void exfat_free(struct fs_context *fc) } } +static int exfat_reconfigure(struct fs_context *fc) +{ + fc->sb_flags |= SB_NODIRATIME; + + /* volume flag will be updated in exfat_sync_fs */ + sync_filesystem(fc->root->d_sb); + return 0; +} + static const struct fs_context_operations exfat_context_ops = { .parse_param = exfat_parse_param, .get_tree = exfat_get_tree, .free = exfat_free, + .reconfigure = exfat_reconfigure, }; static int exfat_init_fs_context(struct fs_context *fc) |