mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
f2fs: do fault injection initialization in default_options
Do fault injection initialization in default_options to keep consistent with other default option configurating. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
9c094040c5
commit
36dbd3287f
1 changed files with 4 additions and 4 deletions
|
@ -363,10 +363,6 @@ static int parse_options(struct super_block *sb, char *options)
|
||||||
char *p, *name;
|
char *p, *name;
|
||||||
int arg = 0;
|
int arg = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_F2FS_FAULT_INJECTION
|
|
||||||
f2fs_build_fault_attr(sbi, 0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!options)
|
if (!options)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -990,6 +986,10 @@ static void default_options(struct f2fs_sb_info *sbi)
|
||||||
#ifdef CONFIG_F2FS_FS_POSIX_ACL
|
#ifdef CONFIG_F2FS_FS_POSIX_ACL
|
||||||
set_opt(sbi, POSIX_ACL);
|
set_opt(sbi, POSIX_ACL);
|
||||||
#endif
|
#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)
|
static int f2fs_remount(struct super_block *sb, int *flags, char *data)
|
||||||
|
|
Loading…
Reference in a new issue