Home
last modified time | relevance | path

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

/Linux-v5.10/fs/f2fs/
Dsuper.c64 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr()
275 F2FS_OPTION(sbi).root_reserved_blocks > limit) { in limit_reserve_root()
276 F2FS_OPTION(sbi).root_reserved_blocks = limit; in limit_reserve_root()
278 F2FS_OPTION(sbi).root_reserved_blocks); in limit_reserve_root()
281 (!uid_eq(F2FS_OPTION(sbi).s_resuid, in limit_reserve_root()
283 !gid_eq(F2FS_OPTION(sbi).s_resgid, in limit_reserve_root()
287 F2FS_OPTION(sbi).s_resuid), in limit_reserve_root()
289 F2FS_OPTION(sbi).s_resgid)); in limit_reserve_root()
294 if (!F2FS_OPTION(sbi).unusable_cap_perc) in adjust_unusable_cap_perc()
297 if (F2FS_OPTION(sbi).unusable_cap_perc == 100) in adjust_unusable_cap_perc()
[all …]
Df2fs.h103 #define F2FS_OPTION(sbi) ((sbi)->mount_opt) macro
104 #define clear_opt(sbi, option) (F2FS_OPTION(sbi).opt &= ~F2FS_MOUNT_##option)
105 #define set_opt(sbi, option) (F2FS_OPTION(sbi).opt |= F2FS_MOUNT_##option)
106 #define test_opt(sbi, option) (F2FS_OPTION(sbi).opt & F2FS_MOUNT_##option)
1640 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in time_to_inject()
2018 if (uid_eq(F2FS_OPTION(sbi).s_resuid, current_fsuid())) in __allow_reserved_blocks()
2020 if (!gid_eq(F2FS_OPTION(sbi).s_resgid, GLOBAL_ROOT_GID) && in __allow_reserved_blocks()
2021 in_group_p(F2FS_OPTION(sbi).s_resgid)) in __allow_reserved_blocks()
2058 avail_user_block_count -= F2FS_OPTION(sbi).root_reserved_blocks; in inc_valid_block_count()
2303 valid_block_count += F2FS_OPTION(sbi).root_reserved_blocks; in inc_valid_node_count()
[all …]
Dnamei.c102 xattr_size = F2FS_OPTION(sbi).inline_xattr_size; in f2fs_new_inode()
283 unsigned int ext_cnt = F2FS_OPTION(sbi).compress_ext_cnt; in set_compress_inode()
306 ext = F2FS_OPTION(sbi).extensions; in set_compress_inode()
1055 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()
Dsysfs.c67 return (unsigned char *)&F2FS_OPTION(sbi).fault_info; in __struct_ptr()
333 F2FS_OPTION(sbi).root_reserved_blocks)) { in __sbi_store()
Dxattr.c796 sbi->inline_xattr_slab_size = F2FS_OPTION(sbi).inline_xattr_size * in f2fs_init_xattr_caches()
Dgc.c112 sync_mode = F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_SYNC; in gc_thread_func()
1994 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
Dsegment.c941 if (unusable > F2FS_OPTION(sbi).unusable_cap) in f2fs_disable_cp_again()
2584 if (F2FS_OPTION(sbi).alloc_mode == ALLOC_MODE_REUSE) in __get_next_segno()
3190 if (F2FS_OPTION(sbi).whint_mode == WHINT_MODE_USER) { in f2fs_io_type_to_rw_hint()
3201 } else if (F2FS_OPTION(sbi).whint_mode == WHINT_MODE_FS) { in f2fs_io_type_to_rw_hint()
3277 switch (F2FS_OPTION(fio->sbi).active_logs) { in __get_segment_type()
Ddir.c855 if (F2FS_OPTION(F2FS_I_SB(dir)).fsync_mode == FSYNC_MODE_STRICT) in f2fs_delete_entry()
Dfile.c207 else if (F2FS_OPTION(sbi).active_logs == 2) in need_do_checkpoint()
209 else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT && in need_do_checkpoint()
358 if (!atomic && F2FS_OPTION(sbi).fsync_mode != FSYNC_MODE_NOBARRIER) in f2fs_do_sync_file()
Dcompress.c1591 F2FS_OPTION(sbi).compress_log_size; in f2fs_init_page_array_cache()
Ddata.c3620 int whint_mode = F2FS_OPTION(sbi).whint_mode; in f2fs_direct_IO()
/Linux-v5.10/include/linux/
Df2fs_fs.h42 #define F2FS_IO_SIZE(sbi) (1 << F2FS_OPTION(sbi).write_io_size_bits) /* Blocks */
43 #define F2FS_IO_SIZE_KB(sbi) (1 << (F2FS_OPTION(sbi).write_io_size_bits + 2)) /* KB */
44 #define F2FS_IO_SIZE_BYTES(sbi) (1 << (F2FS_OPTION(sbi).write_io_size_bits + 12)) /* B */
45 #define F2FS_IO_SIZE_BITS(sbi) (F2FS_OPTION(sbi).write_io_size_bits) /* power of 2 */