Lines Matching refs:F2FS_OPTION

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()
371 if (F2FS_OPTION(sbi).unusable_cap_perc == 100) in adjust_unusable_cap_perc()
372 F2FS_OPTION(sbi).unusable_cap = sbi->user_block_count; in adjust_unusable_cap_perc()
374 F2FS_OPTION(sbi).unusable_cap = (sbi->user_block_count / 100) * in adjust_unusable_cap_perc()
375 F2FS_OPTION(sbi).unusable_cap_perc; in adjust_unusable_cap_perc()
378 F2FS_OPTION(sbi).unusable_cap, in adjust_unusable_cap_perc()
379 F2FS_OPTION(sbi).unusable_cap_perc); in adjust_unusable_cap_perc()
399 if (sb_any_quota_loaded(sb) && !F2FS_OPTION(sbi).s_qf_names[qtype]) { in f2fs_set_qf_name()
413 if (F2FS_OPTION(sbi).s_qf_names[qtype]) { in f2fs_set_qf_name()
414 if (strcmp(F2FS_OPTION(sbi).s_qf_names[qtype], qname) == 0) in f2fs_set_qf_name()
425 F2FS_OPTION(sbi).s_qf_names[qtype] = qname; in f2fs_set_qf_name()
437 if (sb_any_quota_loaded(sb) && F2FS_OPTION(sbi).s_qf_names[qtype]) { in f2fs_clear_qf_name()
441 kfree(F2FS_OPTION(sbi).s_qf_names[qtype]); in f2fs_clear_qf_name()
442 F2FS_OPTION(sbi).s_qf_names[qtype] = NULL; in f2fs_clear_qf_name()
457 if (F2FS_OPTION(sbi).s_qf_names[USRQUOTA] || in f2fs_check_quota_options()
458 F2FS_OPTION(sbi).s_qf_names[GRPQUOTA] || in f2fs_check_quota_options()
459 F2FS_OPTION(sbi).s_qf_names[PRJQUOTA]) { in f2fs_check_quota_options()
461 F2FS_OPTION(sbi).s_qf_names[USRQUOTA]) in f2fs_check_quota_options()
465 F2FS_OPTION(sbi).s_qf_names[GRPQUOTA]) in f2fs_check_quota_options()
469 F2FS_OPTION(sbi).s_qf_names[PRJQUOTA]) in f2fs_check_quota_options()
478 if (!F2FS_OPTION(sbi).s_jquota_fmt) { in f2fs_check_quota_options()
484 if (f2fs_sb_has_quota_ino(sbi) && F2FS_OPTION(sbi).s_jquota_fmt) { in f2fs_check_quota_options()
486 F2FS_OPTION(sbi).s_jquota_fmt = 0; in f2fs_check_quota_options()
503 &F2FS_OPTION(sbi).dummy_enc_policy; in f2fs_set_test_dummy_encryption()
564 ext = F2FS_OPTION(sbi).extensions; in f2fs_test_compress_extension()
565 ext_cnt = F2FS_OPTION(sbi).compress_ext_cnt; in f2fs_test_compress_extension()
566 noext = F2FS_OPTION(sbi).noextensions; in f2fs_test_compress_extension()
567 noext_cnt = F2FS_OPTION(sbi).nocompress_ext_cnt; in f2fs_test_compress_extension()
596 F2FS_OPTION(sbi).compress_level = 0; in f2fs_set_lz4hc_level()
615 F2FS_OPTION(sbi).compress_level = level; in f2fs_set_lz4hc_level()
631 F2FS_OPTION(sbi).compress_level = 0; in f2fs_set_zstd_level()
649 F2FS_OPTION(sbi).compress_level = level; in f2fs_set_zstd_level()
692 F2FS_OPTION(sbi).bggc_mode = BGGC_MODE_ON; in parse_options()
694 F2FS_OPTION(sbi).bggc_mode = BGGC_MODE_OFF; in parse_options()
696 F2FS_OPTION(sbi).bggc_mode = BGGC_MODE_SYNC; in parse_options()
749 F2FS_OPTION(sbi).inline_xattr_size = arg; in parse_options()
786 F2FS_OPTION(sbi).active_logs = arg; in parse_options()
829 F2FS_OPTION(sbi).root_reserved_blocks); in parse_options()
831 F2FS_OPTION(sbi).root_reserved_blocks = arg; in parse_options()
843 F2FS_OPTION(sbi).s_resuid = uid; in parse_options()
853 F2FS_OPTION(sbi).s_resgid = gid; in parse_options()
866 F2FS_OPTION(sbi).fs_mode = FS_MODE_ADAPTIVE; in parse_options()
868 F2FS_OPTION(sbi).fs_mode = FS_MODE_LFS; in parse_options()
870 F2FS_OPTION(sbi).fs_mode = FS_MODE_FRAGMENT_SEG; in parse_options()
872 F2FS_OPTION(sbi).fs_mode = FS_MODE_FRAGMENT_BLK; in parse_options()
887 F2FS_OPTION(sbi).write_io_size_bits = arg; in parse_options()
960 F2FS_OPTION(sbi).s_jquota_fmt = QFMT_VFS_OLD; in parse_options()
963 F2FS_OPTION(sbi).s_jquota_fmt = QFMT_VFS_V0; in parse_options()
966 F2FS_OPTION(sbi).s_jquota_fmt = QFMT_VFS_V1; in parse_options()
998 F2FS_OPTION(sbi).alloc_mode = ALLOC_MODE_DEFAULT; in parse_options()
1000 F2FS_OPTION(sbi).alloc_mode = ALLOC_MODE_REUSE; in parse_options()
1012 F2FS_OPTION(sbi).fsync_mode = FSYNC_MODE_POSIX; in parse_options()
1014 F2FS_OPTION(sbi).fsync_mode = FSYNC_MODE_STRICT; in parse_options()
1016 F2FS_OPTION(sbi).fsync_mode = in parse_options()
1042 F2FS_OPTION(sbi).unusable_cap_perc = arg; in parse_options()
1048 F2FS_OPTION(sbi).unusable_cap = arg; in parse_options()
1074 F2FS_OPTION(sbi).compress_level = 0; in parse_options()
1075 F2FS_OPTION(sbi).compress_algorithm = in parse_options()
1087 F2FS_OPTION(sbi).compress_algorithm = in parse_options()
1099 F2FS_OPTION(sbi).compress_algorithm = in parse_options()
1106 F2FS_OPTION(sbi).compress_level = 0; in parse_options()
1107 F2FS_OPTION(sbi).compress_algorithm = in parse_options()
1131 F2FS_OPTION(sbi).compress_log_size = arg; in parse_options()
1142 ext = F2FS_OPTION(sbi).extensions; in parse_options()
1143 ext_cnt = F2FS_OPTION(sbi).compress_ext_cnt; in parse_options()
1154 F2FS_OPTION(sbi).compress_ext_cnt++; in parse_options()
1166 noext = F2FS_OPTION(sbi).noextensions; in parse_options()
1167 noext_cnt = F2FS_OPTION(sbi).nocompress_ext_cnt; in parse_options()
1178 F2FS_OPTION(sbi).nocompress_ext_cnt++; in parse_options()
1182 F2FS_OPTION(sbi).compress_chksum = true; in parse_options()
1189 F2FS_OPTION(sbi).compress_mode = COMPR_MODE_FS; in parse_options()
1191 F2FS_OPTION(sbi).compress_mode = COMPR_MODE_USER; in parse_options()
1226 F2FS_OPTION(sbi).discard_unit = in parse_options()
1229 F2FS_OPTION(sbi).discard_unit = in parse_options()
1232 F2FS_OPTION(sbi).discard_unit = in parse_options()
1245 F2FS_OPTION(sbi).memory_mode = in parse_options()
1248 F2FS_OPTION(sbi).memory_mode = in parse_options()
1295 if (F2FS_OPTION(sbi).discard_unit != in parse_options()
1298 F2FS_OPTION(sbi).discard_unit = in parse_options()
1332 if (F2FS_OPTION(sbi).inline_xattr_size < min_size || in parse_options()
1333 F2FS_OPTION(sbi).inline_xattr_size > max_size) { in parse_options()
1627 kfree(F2FS_OPTION(sbi).s_qf_names[i]); in f2fs_put_super()
1629 fscrypt_free_dummy_policy(&F2FS_OPTION(sbi).dummy_enc_policy); in f2fs_put_super()
1763 if (buf->f_bfree > F2FS_OPTION(sbi).root_reserved_blocks) in f2fs_statfs()
1765 F2FS_OPTION(sbi).root_reserved_blocks; in f2fs_statfs()
1796 if (F2FS_OPTION(sbi).s_jquota_fmt) { in f2fs_show_quota_options()
1799 switch (F2FS_OPTION(sbi).s_jquota_fmt) { in f2fs_show_quota_options()
1813 if (F2FS_OPTION(sbi).s_qf_names[USRQUOTA]) in f2fs_show_quota_options()
1815 F2FS_OPTION(sbi).s_qf_names[USRQUOTA]); in f2fs_show_quota_options()
1817 if (F2FS_OPTION(sbi).s_qf_names[GRPQUOTA]) in f2fs_show_quota_options()
1819 F2FS_OPTION(sbi).s_qf_names[GRPQUOTA]); in f2fs_show_quota_options()
1821 if (F2FS_OPTION(sbi).s_qf_names[PRJQUOTA]) in f2fs_show_quota_options()
1823 F2FS_OPTION(sbi).s_qf_names[PRJQUOTA]); in f2fs_show_quota_options()
1838 switch (F2FS_OPTION(sbi).compress_algorithm) { in f2fs_show_compress_options()
1854 if (F2FS_OPTION(sbi).compress_level) in f2fs_show_compress_options()
1855 seq_printf(seq, ":%d", F2FS_OPTION(sbi).compress_level); in f2fs_show_compress_options()
1858 F2FS_OPTION(sbi).compress_log_size); in f2fs_show_compress_options()
1860 for (i = 0; i < F2FS_OPTION(sbi).compress_ext_cnt; i++) { in f2fs_show_compress_options()
1862 F2FS_OPTION(sbi).extensions[i]); in f2fs_show_compress_options()
1865 for (i = 0; i < F2FS_OPTION(sbi).nocompress_ext_cnt; i++) { in f2fs_show_compress_options()
1867 F2FS_OPTION(sbi).noextensions[i]); in f2fs_show_compress_options()
1870 if (F2FS_OPTION(sbi).compress_chksum) in f2fs_show_compress_options()
1873 if (F2FS_OPTION(sbi).compress_mode == COMPR_MODE_FS) in f2fs_show_compress_options()
1875 else if (F2FS_OPTION(sbi).compress_mode == COMPR_MODE_USER) in f2fs_show_compress_options()
1887 if (F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_SYNC) in f2fs_show_options()
1889 else if (F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_ON) in f2fs_show_options()
1891 else if (F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_OFF) in f2fs_show_options()
1920 F2FS_OPTION(sbi).inline_xattr_size); in f2fs_show_options()
1952 if (F2FS_OPTION(sbi).fs_mode == FS_MODE_ADAPTIVE) in f2fs_show_options()
1954 else if (F2FS_OPTION(sbi).fs_mode == FS_MODE_LFS) in f2fs_show_options()
1956 else if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_SEG) in f2fs_show_options()
1958 else if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK) in f2fs_show_options()
1960 seq_printf(seq, ",active_logs=%u", F2FS_OPTION(sbi).active_logs); in f2fs_show_options()
1963 F2FS_OPTION(sbi).root_reserved_blocks, in f2fs_show_options()
1965 F2FS_OPTION(sbi).s_resuid), in f2fs_show_options()
1967 F2FS_OPTION(sbi).s_resgid)); in f2fs_show_options()
1970 F2FS_OPTION(sbi).write_io_size_bits); in f2fs_show_options()
1974 F2FS_OPTION(sbi).fault_info.inject_rate); in f2fs_show_options()
1976 F2FS_OPTION(sbi).fault_info.inject_type); in f2fs_show_options()
1996 if (F2FS_OPTION(sbi).alloc_mode == ALLOC_MODE_DEFAULT) in f2fs_show_options()
1998 else if (F2FS_OPTION(sbi).alloc_mode == ALLOC_MODE_REUSE) in f2fs_show_options()
2003 F2FS_OPTION(sbi).unusable_cap); in f2fs_show_options()
2008 if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_POSIX) in f2fs_show_options()
2010 else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT) in f2fs_show_options()
2012 else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_NOBARRIER) in f2fs_show_options()
2022 if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_BLOCK) in f2fs_show_options()
2024 else if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SEGMENT) in f2fs_show_options()
2026 else if (F2FS_OPTION(sbi).discard_unit == DISCARD_UNIT_SECTION) in f2fs_show_options()
2029 if (F2FS_OPTION(sbi).memory_mode == MEMORY_MODE_NORMAL) in f2fs_show_options()
2031 else if (F2FS_OPTION(sbi).memory_mode == MEMORY_MODE_LOW) in f2fs_show_options()
2041 F2FS_OPTION(sbi).active_logs = NR_CURSEG_RO_TYPE; in default_options()
2043 F2FS_OPTION(sbi).active_logs = NR_CURSEG_PERSIST_TYPE; in default_options()
2045 F2FS_OPTION(sbi).inline_xattr_size = DEFAULT_INLINE_XATTR_ADDRS; in default_options()
2046 F2FS_OPTION(sbi).alloc_mode = ALLOC_MODE_DEFAULT; in default_options()
2047 F2FS_OPTION(sbi).fsync_mode = FSYNC_MODE_POSIX; in default_options()
2048 F2FS_OPTION(sbi).s_resuid = make_kuid(&init_user_ns, F2FS_DEF_RESUID); in default_options()
2049 F2FS_OPTION(sbi).s_resgid = make_kgid(&init_user_ns, F2FS_DEF_RESGID); in default_options()
2050 F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZ4; in default_options()
2051 F2FS_OPTION(sbi).compress_log_size = MIN_COMPRESS_LOG_SIZE; in default_options()
2052 F2FS_OPTION(sbi).compress_ext_cnt = 0; in default_options()
2053 F2FS_OPTION(sbi).compress_mode = COMPR_MODE_FS; in default_options()
2054 F2FS_OPTION(sbi).bggc_mode = BGGC_MODE_ON; in default_options()
2055 F2FS_OPTION(sbi).memory_mode = MEMORY_MODE_NORMAL; in default_options()
2066 F2FS_OPTION(sbi).unusable_cap = 0; in default_options()
2072 F2FS_OPTION(sbi).fs_mode = FS_MODE_LFS; in default_options()
2073 F2FS_OPTION(sbi).discard_unit = DISCARD_UNIT_SECTION; in default_options()
2075 F2FS_OPTION(sbi).fs_mode = FS_MODE_ADAPTIVE; in default_options()
2076 F2FS_OPTION(sbi).discard_unit = DISCARD_UNIT_BLOCK; in default_options()
2223 org_mount_opt.s_jquota_fmt = F2FS_OPTION(sbi).s_jquota_fmt; in f2fs_remount()
2225 if (F2FS_OPTION(sbi).s_qf_names[i]) { in f2fs_remount()
2227 kstrdup(F2FS_OPTION(sbi).s_qf_names[i], in f2fs_remount()
2329 (F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_OFF && in f2fs_remount()
2454 F2FS_OPTION(sbi).s_jquota_fmt = org_mount_opt.s_jquota_fmt; in f2fs_remount()
2456 kfree(F2FS_OPTION(sbi).s_qf_names[i]); in f2fs_remount()
2457 F2FS_OPTION(sbi).s_qf_names[i] = org_mount_opt.s_qf_names[i]; in f2fs_remount()
2595 return dquot_quota_on_mount(sbi->sb, F2FS_OPTION(sbi).s_qf_names[type], in f2fs_quota_on_mount()
2596 F2FS_OPTION(sbi).s_jquota_fmt, type); in f2fs_quota_on_mount()
2614 if (F2FS_OPTION(sbi).s_qf_names[i]) { in f2fs_enable_quota_files()
3030 return F2FS_OPTION(F2FS_SB(sb)).dummy_enc_policy.policy; in f2fs_get_dummy_policy()
4063 F2FS_OPTION(sbi).alloc_mode = ALLOC_MODE_REUSE; in f2fs_tuning_parameters()
4460 if ((F2FS_OPTION(sbi).bggc_mode != BGGC_MODE_OFF || in f2fs_fill_super()
4557 kfree(F2FS_OPTION(sbi).s_qf_names[i]); in f2fs_fill_super()
4559 fscrypt_free_dummy_policy(&F2FS_OPTION(sbi).dummy_enc_policy); in f2fs_fill_super()