]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix checks for data=ordered and journal_async_commit options
authorJan Kara <jack@suse.cz>
Sat, 3 Dec 2016 21:20:53 +0000 (16:20 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Dec 2016 21:20:53 +0000 (16:20 -0500)
commitab04df78181b271dca096a8050877469889e3c8c
tree3c01b24ba4a381b4de9c6189fa66e4a43e512df9
parentb649668c0bb3f54523cd932490a3f637859fdeb0
ext4: fix checks for data=ordered and journal_async_commit options

Combination of data=ordered mode and journal_async_commit mount option
is invalid. However the check in parse_options() fails to detect the
case where we simply end up defaulting to data=ordered mode and we
detect the problem only on remount which triggers hard to understand
failure to remount the filesystem.

Fix the checking of mount options to take into account also the default
mode by moving the check somewhat later in the mount sequence.

Reported-by: Wolfgang Walter <linux@stwm.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c