Home
last modified time | relevance | path

Searched refs:F2FS_OPTION (Results 1 – 12 of 12) sorted by relevance

/linux/fs/f2fs/
H A Dsuper.c80 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr()
114 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in inject_timeout()
517 F2FS_OPTION(sbi).root_reserved_blocks > block_limit) { in limit_reserve_root()
518 F2FS_OPTION(sbi).root_reserved_blocks = block_limit; in limit_reserve_root()
520 F2FS_OPTION(sbi).root_reserved_blocks); in limit_reserve_root()
523 F2FS_OPTION(sbi).root_reserved_nodes > node_limit) { in limit_reserve_root()
524 F2FS_OPTION(sbi).root_reserved_nodes = node_limit; in limit_reserve_root()
526 F2FS_OPTION(sbi).root_reserved_nodes); in limit_reserve_root()
529 (!uid_eq(F2FS_OPTION(sbi).s_resuid, in limit_reserve_root()
531 !gid_eq(F2FS_OPTION(sbi).s_resgid, in limit_reserve_root()
[all …]
H A Df2fs.h150 #define F2FS_OPTION(sbi) ((sbi)->mount_opt) macro
152 (F2FS_OPTION(sbi).opt &= ~BIT(F2FS_MOUNT_##option))
154 (F2FS_OPTION(sbi).opt |= BIT(F2FS_MOUNT_##option))
156 (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
2139 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in __time_to_inject()
2584 if (uid_eq(F2FS_OPTION(sbi).s_resuid, current_fsuid())) in __allow_reserved_root()
2586 if (!gid_eq(F2FS_OPTION(sbi).s_resgid, GLOBAL_ROOT_GID) && in __allow_reserved_root()
2587 in_group_p(F2FS_OPTION(sbi).s_resgid)) in __allow_reserved_root()
2604 avail_user_block_count -= F2FS_OPTION(sbi).root_reserved_blocks; in get_available_block_count()
3009 avail_user_node_count -= F2FS_OPTION(sbi).root_reserved_nodes; in inc_valid_node_count()
[all …]
H A Dnamei.c159 F2FS_OPTION(sbi).noextensions; in set_compress_new_inode()
160 unsigned char (*ext)[F2FS_EXTENSION_LEN] = F2FS_OPTION(sbi).extensions; in set_compress_new_inode()
161 unsigned char ext_cnt = F2FS_OPTION(sbi).compress_ext_cnt; in set_compress_new_inode()
162 unsigned char noext_cnt = F2FS_OPTION(sbi).nocompress_ext_cnt; in set_compress_new_inode()
310 xattr_size = F2FS_OPTION(sbi).inline_xattr_size; in f2fs_new_inode()
1141 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_rename()
1313 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_cross_rename()
H A Dfile.c78 F2FS_OPTION(F2FS_I_SB(inode)).fsync_mode == FSYNC_MODE_STRICT; in f2fs_zero_post_eof_page()
294 else if (F2FS_OPTION(sbi).active_logs == 2) in need_do_checkpoint()
296 else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT && in need_do_checkpoint()
396 if (F2FS_OPTION(sbi).fsync_mode == in f2fs_do_sync_file()
459 if (!atomic && F2FS_OPTION(sbi).fsync_mode != FSYNC_MODE_NOBARRIER) in f2fs_do_sync_file()
4778 if (option.algorithm == F2FS_OPTION(sbi).compress_algorithm && in f2fs_ioc_set_compress_option()
4779 F2FS_OPTION(sbi).compress_level) in f2fs_ioc_set_compress_option()
4780 fi->i_compress_level = F2FS_OPTION(sbi).compress_level; in f2fs_ioc_set_compress_option()
4843 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_decompress_file()
4924 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_compress_file()
H A Dsysfs.c91 return (unsigned char *)&F2FS_OPTION(sbi).fault_info; in __struct_ptr()
293 switch (F2FS_OPTION(sbi).lookup_mode) { in effective_lookup_mode_show()
596 F2FS_OPTION(sbi).root_reserved_blocks)) { in __sbi_store()
1983 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in inject_stats_seq_show()
H A Ddir.c25 switch (F2FS_OPTION(sbi).lookup_mode) { in f2fs_should_fallback_to_linear()
898 if (F2FS_OPTION(F2FS_I_SB(dir)).fsync_mode == FSYNC_MODE_STRICT) in f2fs_delete_entry()
H A Dsegment.c981 if (F2FS_OPTION(sbi).unusable_cap_perc == 100) in f2fs_disable_cp_again()
983 if (unusable > F2FS_OPTION(sbi).unusable_cap) in f2fs_disable_cp_again()
2234 bool section_alignment = F2FS_OPTION(sbi).discard_unit == in f2fs_clear_prefree_segments()
2376 if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SEGMENT || in create_discard_cmd_control()
2377 F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SECTION) in create_discard_cmd_control()
3082 if (F2FS_OPTION(sbi).alloc_mode == ALLOC_MODE_REUSE) in __get_next_segno()
3667 if (F2FS_OPTION(sbi).active_logs == 2) in f2fs_rw_hint_to_seg_type()
3669 else if (F2FS_OPTION(sbi).active_logs == 4) in f2fs_rw_hint_to_seg_type()
3868 switch (F2FS_OPTION(fio->sbi).active_logs) { in __get_segment_type()
H A Dgc.c148 sync_mode = (F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_SYNC) || in gc_thread_func()
2414 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
2448 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
H A Dxattr.c791 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) in __f2fs_setxattr()
H A Dsegment.h668 if (F2FS_OPTION(sbi).active_logs != 4) { in __get_secs_required()
H A Ddata.c2914 F2FS_OPTION(sbi).compress_mode == COMPR_MODE_USER && in f2fs_should_update_outplace()
3112 if (F2FS_OPTION(sbi).errors == MOUNT_ERRORS_READONLY) in f2fs_write_single_data_page()
H A Dnode.c1780 if (F2FS_OPTION(sbi).errors == MOUNT_ERRORS_READONLY) in __write_node_folio()