OSDN Git Service

f2fs: add default mount options to remount
authorYunlei He <heyunlei@huawei.com>
Thu, 7 May 2015 10:11:37 +0000 (18:11 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 May 2015 22:41:58 +0000 (15:41 -0700)
commit498c5e9fcd10c89404601b222c1dbcb6e4f10a02
tree719a1687e354574c1847cb4f5c0bd0842d3c27aa
parentd690358b2bf43f5cb12ce07d209d09b1decb79c3
f2fs: add default mount options to remount

I use f2fs filesystem with /data partition on my Android phone
by the default mount options. When I remount /data in order to
adding discard option to run some benchmarks, I find the default
options such as background_gc, user_xattr and acl turned off.

So I introduce a function named default_options in super.c. It do
some default setting, and both mount and remount operations will
call this function to complete default setting.

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