@@ -814,10 +814,10 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
814814 set_opt (sbi , FASTBOOT );
815815 break ;
816816 case Opt_extent_cache :
817- set_opt (sbi , EXTENT_CACHE );
817+ set_opt (sbi , READ_EXTENT_CACHE );
818818 break ;
819819 case Opt_noextent_cache :
820- clear_opt (sbi , EXTENT_CACHE );
820+ clear_opt (sbi , READ_EXTENT_CACHE );
821821 break ;
822822 case Opt_noinline_data :
823823 clear_opt (sbi , INLINE_DATA );
@@ -1954,7 +1954,7 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
19541954 seq_puts (seq , ",barrier" );
19551955 if (test_opt (sbi , FASTBOOT ))
19561956 seq_puts (seq , ",fastboot" );
1957- if (test_opt (sbi , EXTENT_CACHE ))
1957+ if (test_opt (sbi , READ_EXTENT_CACHE ))
19581958 seq_puts (seq , ",extent_cache" );
19591959 else
19601960 seq_puts (seq , ",noextent_cache" );
@@ -2076,7 +2076,7 @@ static void default_options(struct f2fs_sb_info *sbi)
20762076 set_opt (sbi , INLINE_XATTR );
20772077 set_opt (sbi , INLINE_DATA );
20782078 set_opt (sbi , INLINE_DENTRY );
2079- set_opt (sbi , EXTENT_CACHE );
2079+ set_opt (sbi , READ_EXTENT_CACHE );
20802080 set_opt (sbi , NOHEAP );
20812081 clear_opt (sbi , DISABLE_CHECKPOINT );
20822082 set_opt (sbi , MERGE_CHECKPOINT );
@@ -2218,7 +2218,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
22182218 bool need_restart_ckpt = false, need_stop_ckpt = false;
22192219 bool need_restart_flush = false, need_stop_flush = false;
22202220 bool need_restart_discard = false, need_stop_discard = false;
2221- bool no_extent_cache = !test_opt (sbi , EXTENT_CACHE );
2221+ bool no_read_extent_cache = !test_opt (sbi , READ_EXTENT_CACHE );
22222222 bool enable_checkpoint = !test_opt (sbi , DISABLE_CHECKPOINT );
22232223 bool no_io_align = !F2FS_IO_ALIGNED (sbi );
22242224 bool no_atgc = !test_opt (sbi , ATGC );
@@ -2308,7 +2308,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
23082308 }
23092309
23102310 /* disallow enable/disable extent_cache dynamically */
2311- if (no_extent_cache == !!test_opt (sbi , EXTENT_CACHE )) {
2311+ if (no_read_extent_cache == !!test_opt (sbi , READ_EXTENT_CACHE )) {
23122312 err = - EINVAL ;
23132313 f2fs_warn (sbi , "switch extent_cache option is not allowed" );
23142314 goto restore_opts ;
0 commit comments