f2fs: setting discard option in parse_options()
authorChao Yu <chao2.yu@samsung.com>
Mon, 8 Jun 2015 05:20:10 +0000 (13:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 8 Jun 2015 18:09:19 +0000 (11:09 -0700)
For the first mount of f2fs image with realtime discard option, we will
disable discard option if device is not supported, but for remount
operation, our discard option can still be set, this should be avoided.

This patch moves configuring of discard option to parse_options() to fix
this issue.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

No differences found