From: Chengguang Xu Subject: [PATCH] f2fs: remove default option setting in remount Date: Tue, 18 Sep 2018 14:23:44 +0800 Message-ID: <20180918062344.3102-1-cgxu519@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1g29Re-0008TR-3h for linux-f2fs-devel@lists.sourceforge.net; Tue, 18 Sep 2018 06:25:10 +0000 Received: from mout.gmx.net ([212.227.15.19]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1g29Rc-004g2v-2u for linux-f2fs-devel@lists.sourceforge.net; Tue, 18 Sep 2018 06:25:09 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: jaegeuk@kernel.org, yuchao0@huawei.com Cc: Chengguang Xu , linux-f2fs-devel@lists.sourceforge.net Currently we set default value to options before parsing remount options, it will cause unexpected change of options which were specified in first mount. Signed-off-by: Chengguang Xu --- fs/f2fs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 00d512cd4bf2..89ea19466e80 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1499,8 +1499,6 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data) clear_sbi_flag(sbi, SBI_NEED_SB_WRITE); } - default_options(sbi); - /* parse mount options */ err = parse_options(sb, data); if (err) -- 2.17.1