]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ocfs2: fix mount option parsing
authorTiger Yang <tiger.yang@oracle.com>
Fri, 7 Sep 2007 16:16:10 +0000 (00:16 +0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 11 Sep 2007 18:38:48 +0000 (11:38 -0700)
commit297e699ae0f716d61beaedd9c6c3d8eaa976bd73
treece61b2efb74c14632fa2584fb45ef37df3b3dedd
parent376032e8d64dcfdfa2b1fb30be280c0360f81642
[PATCH] ocfs2: fix mount option parsing

For some mount option types, ocfs2_parse_options() will try to access
sb->s_fs_info to get at the ocfs2 private superblock. Unfortunately, that
hasn't been allocated yet and will cause a kernel crash.

Fix this by storing options in a struct which can then get pushed into the
ocfs2_super once it's been allocated later. If we need more options which
store to the ocfs2_super in the future, we can just fields to this struct.

Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/super.c