Home
last modified time | relevance | path

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

/openbmc/linux/fs/f2fs/
H A Dsuper.c70 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr()
327 F2FS_OPTION(sbi).root_reserved_blocks > limit) { in limit_reserve_root()
328 F2FS_OPTION(sbi).root_reserved_blocks = limit; in limit_reserve_root()
330 F2FS_OPTION(sbi).root_reserved_blocks); in limit_reserve_root()
333 (!uid_eq(F2FS_OPTION(sbi).s_resuid, in limit_reserve_root()
335 !gid_eq(F2FS_OPTION(sbi).s_resgid, in limit_reserve_root()
339 F2FS_OPTION(sbi).s_resuid), in limit_reserve_root()
341 F2FS_OPTION(sbi).s_resgid)); in limit_reserve_root()
346 if (!F2FS_OPTION(sbi).unusable_cap_perc) in adjust_unusable_cap_perc()
349 if (F2FS_OPTION(sbi).unusable_cap_perc == 100) in adjust_unusable_cap_perc()
[all …]
H A Df2fs.h117 #define F2FS_OPTION(sbi) ((sbi)->mount_opt) macro
118 #define clear_opt(sbi, option) (F2FS_OPTION(sbi).opt &= ~F2FS_MOUNT_##option)
119 #define set_opt(sbi, option) (F2FS_OPTION(sbi).opt |= F2FS_MOUNT_##option)
120 #define test_opt(sbi, option) (F2FS_OPTION(sbi).opt & F2FS_MOUNT_##option)
1851 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in __time_to_inject()
2273 if (uid_eq(F2FS_OPTION(sbi).s_resuid, current_fsuid())) in __allow_reserved_blocks()
2275 if (!gid_eq(F2FS_OPTION(sbi).s_resgid, GLOBAL_ROOT_GID) && in __allow_reserved_blocks()
2276 in_group_p(F2FS_OPTION(sbi).s_resgid)) in __allow_reserved_blocks()
2292 avail_user_block_count -= F2FS_OPTION(sbi).root_reserved_blocks; in get_available_block_count()
3208 int compress_mode = F2FS_OPTION(F2FS_I_SB(inode)).compress_mode; in f2fs_need_compress_data()
[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()
293 xattr_size = F2FS_OPTION(sbi).inline_xattr_size; in f2fs_new_inode()
1056 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_rename()
1221 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) { in f2fs_cross_rename()
H A Dxattr.c784 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) in __f2fs_setxattr()
840 sbi->inline_xattr_slab_size = F2FS_OPTION(sbi).inline_xattr_size * in f2fs_init_xattr_caches()
H A Dfile.c209 else if (F2FS_OPTION(sbi).active_logs == 2) in need_do_checkpoint()
211 else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT && in need_do_checkpoint()
311 if (F2FS_OPTION(sbi).fsync_mode == in f2fs_do_sync_file()
374 if ((!atomic && F2FS_OPTION(sbi).fsync_mode != FSYNC_MODE_NOBARRIER) || in f2fs_do_sync_file()
4168 if (option.algorithm == F2FS_OPTION(sbi).compress_algorithm && in f2fs_ioc_set_compress_option()
4169 F2FS_OPTION(sbi).compress_level) in f2fs_ioc_set_compress_option()
4170 F2FS_I(inode)->i_compress_level = F2FS_OPTION(sbi).compress_level; in f2fs_ioc_set_compress_option()
4229 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_decompress_file()
4307 F2FS_OPTION(sbi).compress_mode != COMPR_MODE_USER) in f2fs_ioc_compress_file()
H A Dsegment.c914 if (unusable > F2FS_OPTION(sbi).unusable_cap) in f2fs_disable_cp_again()
2160 bool section_alignment = F2FS_OPTION(sbi).discard_unit == in f2fs_clear_prefree_segments()
2295 if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SEGMENT) in create_discard_cmd_control()
2297 else if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SECTION) in create_discard_cmd_control()
2785 if (F2FS_OPTION(sbi).alloc_mode == ALLOC_MODE_REUSE) in __get_next_segno()
2815 if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK) in new_curseg()
3414 switch (F2FS_OPTION(fio->sbi).active_logs) { in __get_segment_type()
3484 if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK) in f2fs_allocate_data_block()
H A Dgc.c127 sync_mode = F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_SYNC; in gc_thread_func()
2193 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
2227 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
H A Dsysfs.c82 return (unsigned char *)&F2FS_OPTION(sbi).fault_info; in __struct_ptr()
474 F2FS_OPTION(sbi).root_reserved_blocks - in __sbi_store()
H A Ddir.c915 if (F2FS_OPTION(F2FS_I_SB(dir)).fsync_mode == FSYNC_MODE_STRICT) in f2fs_delete_entry()
H A Dcompress.c2021 F2FS_OPTION(sbi).compress_log_size; in f2fs_init_page_array_cache()
H A Dnode.c1636 if (F2FS_OPTION(sbi).errors == MOUNT_ERRORS_READONLY) in __write_node_page()
H A Ddata.c2777 if (F2FS_OPTION(sbi).errors == MOUNT_ERRORS_READONLY) in f2fs_write_single_data_page()