Lines Matching refs:F2FS_OPTION
150 #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()
3585 int compress_mode = F2FS_OPTION(F2FS_I_SB(inode)).compress_mode; in f2fs_need_compress_data()
4157 return F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK; in f2fs_need_rand_blk()
4165 return F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_SEG; in f2fs_need_rand_seg()
4851 fi->i_compress_algorithm = F2FS_OPTION(sbi).compress_algorithm; in set_compress_context()
4852 fi->i_log_cluster_size = F2FS_OPTION(sbi).compress_log_size; in set_compress_context()
4853 fi->i_compress_flag = F2FS_OPTION(sbi).compress_chksum ? in set_compress_context()
4858 F2FS_OPTION(sbi).compress_level) in set_compress_context()
4859 fi->i_compress_level = F2FS_OPTION(sbi).compress_level; in set_compress_context()
5010 return F2FS_OPTION(sbi).fs_mode == FS_MODE_LFS; in f2fs_lfs_mode()
5042 return F2FS_OPTION(sbi).memory_mode == MEMORY_MODE_LOW; in f2fs_low_mem_mode()
5106 if (F2FS_OPTION(sbi).s_qf_names[USRQUOTA] || in is_journalled_quota()
5107 F2FS_OPTION(sbi).s_qf_names[GRPQUOTA] || in is_journalled_quota()
5108 F2FS_OPTION(sbi).s_qf_names[PRJQUOTA]) in is_journalled_quota()
5132 return F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_BLOCK; in f2fs_block_unit_discard()