ext2: Parse mount options into a dedicated structure
authorJan Kara <jack@suse.cz>
Mon, 9 Oct 2017 14:34:58 +0000 (16:34 +0200)
committerJan Kara <jack@suse.cz>
Wed, 11 Oct 2017 09:43:24 +0000 (11:43 +0200)
commit088519572ca8bd6ab354d74bf7c88f413ed0e0be
treecbdc7505be12df22e71dd68bf87db1013e07a0f2
parentde8cd83e91bc3ee212b3e6ec6e4283af9e4ab269
ext2: Parse mount options into a dedicated structure

Instead of parsing mount options directly into the superblock (and
restoring options in case of error), parse the options into a dedicated
structure and only copy everything when we know we can safely switch
options. This will allow us to simplify locking and do option parsing
without holding sb->s_lock.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c