aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-11-17 22:17:20 -0500
committerJaegeuk Kim <jaegeuk@kernel.org>2014-11-20 01:49:31 -0500
commitaba291b3d8d83941c7ea39487e279ae793b711b3 (patch)
treee0256e3f4bcb25237d7774b042b0c61b42fe0219 /fs/f2fs
parent6c0299320318c8154a20a3d9e73cbd1fc58d96e1 (diff)
f2fs: remove unneeded check code with option in f2fs_remount
Because we have checked the contrary condition in case of "if" judgment, we do not need to check the condition again in case of "else" judgment. Let's remove it. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 536d41401748..f71421d70475 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -669,7 +669,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
669 f2fs_sync_fs(sb, 1); 669 f2fs_sync_fs(sb, 1);
670 need_restart_gc = true; 670 need_restart_gc = true;
671 } 671 }
672 } else if (test_opt(sbi, BG_GC) && !sbi->gc_thread) { 672 } else if (!sbi->gc_thread) {
673 err = start_gc_thread(sbi); 673 err = start_gc_thread(sbi);
674 if (err) 674 if (err)
675 goto restore_opts; 675 goto restore_opts;
@@ -682,7 +682,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
682 */ 682 */
683 if ((*flags & MS_RDONLY) || !test_opt(sbi, FLUSH_MERGE)) { 683 if ((*flags & MS_RDONLY) || !test_opt(sbi, FLUSH_MERGE)) {
684 destroy_flush_cmd_control(sbi); 684 destroy_flush_cmd_control(sbi);
685 } else if (test_opt(sbi, FLUSH_MERGE) && !SM_I(sbi)->cmd_control_info) { 685 } else if (!SM_I(sbi)->cmd_control_info) {
686 err = create_flush_cmd_control(sbi); 686 err = create_flush_cmd_control(sbi);
687 if (err) 687 if (err)
688 goto restore_gc; 688 goto restore_gc;