]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3dfae670c1f47de34951642ac11f80dab6bd987e
treecbdc7505be12df22e71dd68bf87db1013e07a0f2
parent58678886602c2eba40f0b81a53238d69c16ecda5
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