f2fs: fix to clean previous mount option when remount_fs
authorChao Yu <chao2.yu@samsung.com>
Mon, 15 Sep 2014 10:04:44 +0000 (18:04 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Sep 2014 18:10:22 +0000 (11:10 -0700)
commit26666c8a4366debae30ae37d0688b2bec92d196a
tree0e1c698d7f234b49c737ac537aecec9fae0c4d3a
parent14cecc5cd6ed33ef3cb7328de904cc636dd390a4
f2fs: fix to clean previous mount option when remount_fs

In manual of mount, we descript remount as below:

"mount -o remount,rw /dev/foo /dir
After  this call all old mount options are replaced and arbitrary stuff from
fstab is ignored, except the loop= option which is internally generated and
maintained by the mount command."

Previously f2fs do not clear up old mount options when remount_fs, so we have no
chance of disabling previous option (e.g. flush_merge). Fix it.

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