Home
last modified time | relevance | path

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

/linux/fs/f2fs/
H A Dsuper.c79 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr()
113 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in inject_timeout()
510 F2FS_OPTION(sbi).root_reserved_blocks > block_limit) { in limit_reserve_root()
511 F2FS_OPTION(sbi).root_reserved_blocks = block_limit; in limit_reserve_root()
513 F2FS_OPTION(sbi).root_reserved_blocks); in limit_reserve_root()
516 F2FS_OPTION(sbi).root_reserved_nodes > node_limit) { in limit_reserve_root()
517 F2FS_OPTION(sbi).root_reserved_nodes = node_limit; in limit_reserve_root()
519 F2FS_OPTION(sbi).root_reserved_nodes); in limit_reserve_root()
522 (!uid_eq(F2FS_OPTION(sbi).s_resuid, in limit_reserve_root()
524 !gid_eq(F2FS_OPTION(sbi).s_resgid, in limit_reserve_root()
[all …]
H A Df2fs.h142 #define F2FS_OPTION(sbi) ((sbi)->mount_opt) macro
144 (F2FS_OPTION(sbi).opt &= ~BIT(F2FS_MOUNT_##option))
146 (F2FS_OPTION(sbi).opt |= BIT(F2FS_MOUNT_##option))
148 (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
2084 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in __time_to_inject()
2522 if (uid_eq(F2FS_OPTION(sbi).s_resuid, current_fsuid())) in __allow_reserved_root()
2524 if (!gid_eq(F2FS_OPTION(sbi).s_resgid, GLOBAL_ROOT_GID) && in __allow_reserved_root()
2525 in_group_p(F2FS_OPTION(sbi).s_resgid)) in __allow_reserved_root()
2541 avail_user_block_count -= F2FS_OPTION(sbi).root_reserved_blocks; in get_available_block_count()
2939 avail_user_node_count -= F2FS_OPTION(sbi).root_reserved_nodes; in inc_valid_node_count()
[all …]
H A Dnamei.c144 F2FS_OPTION(sbi).noextensions; in set_compress_new_inode()
145 unsigned char (*ext)[F2FS_EXTENSION_LEN] = F2FS_OPTION(sbi).extensions; in set_compress_new_inode()
146 unsigned char ext_cnt = F2FS_OPTION(sbi).compress_ext_cnt; in set_compress_new_inode()
147 unsigned char noext_cnt = F2FS_OPTION(sbi).nocompress_ext_cnt; in set_compress_new_inode()
295 xattr_size = F2FS_OPTION(sbi).inline_xattr_size; in f2fs_new_inode()
1088 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_rename()
1254 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_cross_rename()
H A Dfile.c237 else if (F2FS_OPTION(sbi).active_logs == 2) in need_do_checkpoint()
239 else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT && in need_do_checkpoint()
339 if (F2FS_OPTION(sbi).fsync_mode == in f2fs_do_sync_file()
402 if (!atomic && F2FS_OPTION(sbi).fsync_mode != FSYNC_MODE_NOBARRIER) in f2fs_do_sync_file()
4417 if (option.algorithm == F2FS_OPTION(sbi).compress_algorithm && in f2fs_ioc_set_compress_option()
4418 F2FS_OPTION(sbi).compress_level) in f2fs_ioc_set_compress_option()
4419 fi->i_compress_level = F2FS_OPTION(sbi).compress_level; in f2fs_ioc_set_compress_option()
4482 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_decompress_file()
4563 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_compress_file()
H A Dsegment.c935 if (F2FS_OPTION(sbi).unusable_cap_perc == 100) in f2fs_disable_cp_again()
937 if (unusable > F2FS_OPTION(sbi).unusable_cap) in f2fs_disable_cp_again()
2178 bool section_alignment = F2FS_OPTION(sbi).discard_unit == in f2fs_clear_prefree_segments()
2320 if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SEGMENT || in create_discard_cmd_control()
2321 F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SECTION) in create_discard_cmd_control()
2971 if (F2FS_OPTION(sbi).alloc_mode == ALLOC_MODE_REUSE) in __get_next_segno()
3009 if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK) in new_curseg()
3554 if (F2FS_OPTION(sbi).active_logs == 2) in f2fs_rw_hint_to_seg_type()
3556 else if (F2FS_OPTION(sbi).active_logs == 4) in f2fs_rw_hint_to_seg_type()
3742 switch (F2FS_OPTION(fio->sbi).active_logs) { in __get_segment_type()
[all …]
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()
585 F2FS_OPTION(sbi).root_reserved_blocks)) { in __sbi_store()
1962 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in inject_stats_seq_show()
H A Ddir.c24 switch (F2FS_OPTION(sbi).lookup_mode) { in f2fs_should_fallback_to_linear()
891 if (F2FS_OPTION(F2FS_I_SB(dir)).fsync_mode == FSYNC_MODE_STRICT) in f2fs_delete_entry()
H A Dgc.c148 sync_mode = (F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_SYNC) || in gc_thread_func()
2328 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
2362 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
H A Dxattr.c785 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) in __f2fs_setxattr()
H A Dsegment.h680 if (F2FS_OPTION(sbi).active_logs != 4) { in __get_secs_required()
H A Dcompress.c2071 F2FS_OPTION(sbi).compress_log_size; in f2fs_init_page_array_cache()
H A Ddata.c2895 F2FS_OPTION(sbi).compress_mode == COMPR_MODE_USER && in f2fs_should_update_outplace()
3104 if (F2FS_OPTION(sbi).errors == MOUNT_ERRORS_READONLY) in f2fs_write_single_data_page()
H A Dnode.c1758 if (F2FS_OPTION(sbi).errors == MOUNT_ERRORS_READONLY) in __write_node_folio()