aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-09-26 19:45:05 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:12 +0200
commit9fdf081989e810476fe43e8157b1d389aabce41a (patch)
tree8557fef22d5ae686e8d1d5994974e4c50a5362e1
parent09d4b3d1b5b5c7853c1fc995a7060289297ec3cd (diff)
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>
-rw-r--r--fs/f2fs/super.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index e021e2226..f56dccfe4 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -358,10 +358,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;
@@ -976,6 +972,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)