Skip to content

Commit

Permalink
f2fs: do fault injection initialization in default_options
Browse files Browse the repository at this point in the history
Do fault injection initialization in default_options to keep consistent
with other default option configurating.

Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
chaseyu authored and Jaegeuk Kim committed Oct 1, 2016
1 parent 9c09404 commit 36dbd32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,6 @@ static int parse_options(struct super_block *sb, char *options)
char *p, *name;
int arg = 0;

#ifdef CONFIG_F2FS_FAULT_INJECTION
f2fs_build_fault_attr(sbi, 0);
#endif

if (!options)
return 0;

Expand Down Expand Up @@ -990,6 +986,10 @@ static void default_options(struct f2fs_sb_info *sbi)
#ifdef CONFIG_F2FS_FS_POSIX_ACL
set_opt(sbi, POSIX_ACL);
#endif

#ifdef CONFIG_F2FS_FAULT_INJECTION
f2fs_build_fault_attr(sbi, 0);
#endif
}

static int f2fs_remount(struct super_block *sb, int *flags, char *data)
Expand Down

0 comments on commit 36dbd32

Please sign in to comment.