Searched refs:F2FS_OPTION (Results 1 – 11 of 11) sorted by relevance
69 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr()309 F2FS_OPTION(sbi).root_reserved_blocks > limit) { in limit_reserve_root()310 F2FS_OPTION(sbi).root_reserved_blocks = limit; in limit_reserve_root()312 F2FS_OPTION(sbi).root_reserved_blocks); in limit_reserve_root()315 (!uid_eq(F2FS_OPTION(sbi).s_resuid, in limit_reserve_root()317 !gid_eq(F2FS_OPTION(sbi).s_resgid, in limit_reserve_root()321 F2FS_OPTION(sbi).s_resuid), in limit_reserve_root()323 F2FS_OPTION(sbi).s_resgid)); in limit_reserve_root()348 F2FS_OPTION(sbi).root_reserved_blocks; in adjust_reserved_segment()368 if (!F2FS_OPTION(sbi).unusable_cap_perc) in adjust_unusable_cap_perc()[all …]
110 #define F2FS_OPTION(sbi) ((sbi)->mount_opt) macro111 #define clear_opt(sbi, option) (F2FS_OPTION(sbi).opt &= ~F2FS_MOUNT_##option)112 #define set_opt(sbi, option) (F2FS_OPTION(sbi).opt |= F2FS_MOUNT_##option)113 #define test_opt(sbi, option) (F2FS_OPTION(sbi).opt & F2FS_MOUNT_##option)1879 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in time_to_inject()2296 if (uid_eq(F2FS_OPTION(sbi).s_resuid, current_fsuid())) in __allow_reserved_blocks()2298 if (!gid_eq(F2FS_OPTION(sbi).s_resgid, GLOBAL_ROOT_GID) && in __allow_reserved_blocks()2299 in_group_p(F2FS_OPTION(sbi).s_resgid)) in __allow_reserved_blocks()2336 avail_user_block_count -= F2FS_OPTION(sbi).root_reserved_blocks; in inc_valid_block_count()2609 valid_block_count += F2FS_OPTION(sbi).root_reserved_blocks; in inc_valid_node_count()[all …]
130 F2FS_OPTION(sbi).noextensions; in set_compress_new_inode()131 unsigned char (*ext)[F2FS_EXTENSION_LEN] = F2FS_OPTION(sbi).extensions; in set_compress_new_inode()132 unsigned char ext_cnt = F2FS_OPTION(sbi).compress_ext_cnt; in set_compress_new_inode()133 unsigned char noext_cnt = F2FS_OPTION(sbi).nocompress_ext_cnt; in set_compress_new_inode()253 xattr_size = F2FS_OPTION(sbi).inline_xattr_size; in f2fs_new_inode()1109 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_rename()1274 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_cross_rename()
869 if (unusable > F2FS_OPTION(sbi).unusable_cap) in f2fs_disable_cp_again()1920 bool section_alignment = F2FS_OPTION(sbi).discard_unit == in f2fs_clear_prefree_segments()2051 if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SEGMENT) in create_discard_cmd_control()2053 else if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SECTION) in create_discard_cmd_control()2560 if (F2FS_OPTION(sbi).alloc_mode == ALLOC_MODE_REUSE) in __get_next_segno()2591 if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK) in new_curseg()2626 if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK) { in __refresh_next_blkoff()3192 switch (F2FS_OPTION(fio->sbi).active_logs) { in __get_segment_type()
129 sync_mode = F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_SYNC; in gc_thread_func()2122 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()2144 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
82 return (unsigned char *)&F2FS_OPTION(sbi).fault_info; in __struct_ptr()462 F2FS_OPTION(sbi).root_reserved_blocks - in __sbi_store()
213 else if (F2FS_OPTION(sbi).active_logs == 2) in need_do_checkpoint()215 else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT && in need_do_checkpoint()312 if (F2FS_OPTION(sbi).fsync_mode == in f2fs_do_sync_file()375 if ((!atomic && F2FS_OPTION(sbi).fsync_mode != FSYNC_MODE_NOBARRIER) || in f2fs_do_sync_file()3997 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_decompress_file()4069 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_compress_file()
813 sbi->inline_xattr_slab_size = F2FS_OPTION(sbi).inline_xattr_size * in f2fs_init_xattr_caches()
914 if (F2FS_OPTION(F2FS_I_SB(dir)).fsync_mode == FSYNC_MODE_STRICT) in f2fs_delete_entry()
1982 F2FS_OPTION(sbi).compress_log_size; in f2fs_init_page_array_cache()
43 #define F2FS_IO_SIZE(sbi) (1 << F2FS_OPTION(sbi).write_io_size_bits) /* Blocks */44 #define F2FS_IO_SIZE_KB(sbi) (1 << (F2FS_OPTION(sbi).write_io_size_bits + 2)) /* KB */45 #define F2FS_IO_SIZE_BYTES(sbi) (1 << (F2FS_OPTION(sbi).write_io_size_bits + 12)) /* B */46 #define F2FS_IO_SIZE_BITS(sbi) (F2FS_OPTION(sbi).write_io_size_bits) /* power of 2 */