Lines Matching refs:a

56 	ssize_t (*show)(struct f2fs_attr *a, struct f2fs_sb_info *sbi, char *buf);
57 ssize_t (*store)(struct f2fs_attr *a, struct f2fs_sb_info *sbi,
66 ssize_t (*show)(struct f2fs_base_attr *a, char *buf);
67 ssize_t (*store)(struct f2fs_base_attr *a, const char *buf, size_t len);
70 static ssize_t f2fs_sbi_show(struct f2fs_attr *a,
101 static ssize_t dirty_segments_show(struct f2fs_attr *a, in dirty_segments_show() argument
108 static ssize_t free_segments_show(struct f2fs_attr *a, in free_segments_show() argument
115 static ssize_t ovp_segments_show(struct f2fs_attr *a, in ovp_segments_show() argument
122 static ssize_t lifetime_write_kbytes_show(struct f2fs_attr *a, in lifetime_write_kbytes_show() argument
131 static ssize_t sb_status_show(struct f2fs_attr *a, in sb_status_show() argument
137 static ssize_t cp_status_show(struct f2fs_attr *a, in cp_status_show() argument
143 static ssize_t pending_discard_show(struct f2fs_attr *a, in pending_discard_show() argument
152 static ssize_t issued_discard_show(struct f2fs_attr *a, in issued_discard_show() argument
161 static ssize_t queued_discard_show(struct f2fs_attr *a, in queued_discard_show() argument
170 static ssize_t undiscard_blks_show(struct f2fs_attr *a, in undiscard_blks_show() argument
179 static ssize_t atgc_enabled_show(struct f2fs_attr *a, in atgc_enabled_show() argument
185 static ssize_t gc_mode_show(struct f2fs_attr *a, in gc_mode_show() argument
191 static ssize_t features_show(struct f2fs_attr *a, in features_show() argument
244 static ssize_t current_reserved_blocks_show(struct f2fs_attr *a, in current_reserved_blocks_show() argument
250 static ssize_t unusable_show(struct f2fs_attr *a, in unusable_show() argument
262 static ssize_t encoding_show(struct f2fs_attr *a, in encoding_show() argument
277 static ssize_t encoding_flags_show(struct f2fs_attr *a, in encoding_flags_show() argument
284 static ssize_t mounted_time_sec_show(struct f2fs_attr *a, in mounted_time_sec_show() argument
291 static ssize_t moved_blocks_foreground_show(struct f2fs_attr *a, in moved_blocks_foreground_show() argument
301 static ssize_t moved_blocks_background_show(struct f2fs_attr *a, in moved_blocks_background_show() argument
310 static ssize_t avg_vblocks_show(struct f2fs_attr *a, in avg_vblocks_show() argument
321 static ssize_t main_blkaddr_show(struct f2fs_attr *a, in main_blkaddr_show() argument
328 static ssize_t f2fs_sbi_show(struct f2fs_attr *a, in f2fs_sbi_show() argument
334 ptr = __struct_ptr(sbi, a->struct_type); in f2fs_sbi_show()
338 if (!strcmp(a->attr.name, "extension_list")) { in f2fs_sbi_show()
356 if (!strcmp(a->attr.name, "ckpt_thread_ioprio")) { in f2fs_sbi_show()
369 if (!strcmp(a->attr.name, "compr_written_block")) in f2fs_sbi_show()
372 if (!strcmp(a->attr.name, "compr_saved_block")) in f2fs_sbi_show()
375 if (!strcmp(a->attr.name, "compr_new_inode")) in f2fs_sbi_show()
379 if (!strcmp(a->attr.name, "gc_segment_mode")) in f2fs_sbi_show()
382 if (!strcmp(a->attr.name, "gc_reclaimed_segments")) { in f2fs_sbi_show()
387 if (!strcmp(a->attr.name, "current_atomic_write")) { in f2fs_sbi_show()
393 if (!strcmp(a->attr.name, "peak_atomic_write")) in f2fs_sbi_show()
396 if (!strcmp(a->attr.name, "committed_atomic_block")) in f2fs_sbi_show()
399 if (!strcmp(a->attr.name, "revoked_atomic_block")) in f2fs_sbi_show()
403 if (!strcmp(a->attr.name, "cp_foreground_calls")) in f2fs_sbi_show()
407 if (!strcmp(a->attr.name, "cp_background_calls")) in f2fs_sbi_show()
412 ui = (unsigned int *)(ptr + a->offset); in f2fs_sbi_show()
417 static ssize_t __sbi_store(struct f2fs_attr *a, in __sbi_store() argument
426 ptr = __struct_ptr(sbi, a->struct_type); in __sbi_store()
430 if (!strcmp(a->attr.name, "extension_list")) { in __sbi_store()
465 if (!strcmp(a->attr.name, "ckpt_thread_ioprio")) { in __sbi_store()
497 ui = (unsigned int *)(ptr + a->offset); in __sbi_store()
503 if (a->struct_type == FAULT_INFO_TYPE) { in __sbi_store()
508 if (a->struct_type == FAULT_INFO_RATE) { in __sbi_store()
514 if (a->struct_type == RESERVED_BLOCKS) { in __sbi_store()
528 if (!strcmp(a->attr.name, "discard_io_aware_gran")) { in __sbi_store()
539 if (!strcmp(a->attr.name, "discard_granularity")) { in __sbi_store()
550 if (!strcmp(a->attr.name, "max_ordered_discard")) { in __sbi_store()
559 if (!strcmp(a->attr.name, "discard_urgent_util")) { in __sbi_store()
566 if (!strcmp(a->attr.name, "discard_io_aware")) { in __sbi_store()
573 if (!strcmp(a->attr.name, "migration_granularity")) { in __sbi_store()
578 if (!strcmp(a->attr.name, "migration_window_granularity")) { in __sbi_store()
583 if (!strcmp(a->attr.name, "gc_urgent")) { in __sbi_store()
608 if (!strcmp(a->attr.name, "gc_idle")) { in __sbi_store()
623 if (!strcmp(a->attr.name, "gc_remaining_trials")) { in __sbi_store()
631 if (!strcmp(a->attr.name, "gc_no_zoned_gc_percent")) { in __sbi_store()
638 if (!strcmp(a->attr.name, "gc_boost_zoned_gc_percent")) { in __sbi_store()
645 if (!strcmp(a->attr.name, "gc_valid_thresh_ratio")) { in __sbi_store()
653 if (!strcmp(a->attr.name, "iostat_enable")) { in __sbi_store()
660 if (!strcmp(a->attr.name, "iostat_period_ms")) { in __sbi_store()
671 if (!strcmp(a->attr.name, "blkzone_alloc_policy")) { in __sbi_store()
680 if (!strcmp(a->attr.name, "compr_written_block") || in __sbi_store()
681 !strcmp(a->attr.name, "compr_saved_block")) { in __sbi_store()
689 if (!strcmp(a->attr.name, "compr_new_inode")) { in __sbi_store()
696 if (!strcmp(a->attr.name, "compress_percent")) { in __sbi_store()
703 if (!strcmp(a->attr.name, "compress_watermark")) { in __sbi_store()
711 if (!strcmp(a->attr.name, "atgc_candidate_ratio")) { in __sbi_store()
718 if (!strcmp(a->attr.name, "atgc_age_weight")) { in __sbi_store()
725 if (!strcmp(a->attr.name, "gc_segment_mode")) { in __sbi_store()
733 if (!strcmp(a->attr.name, "gc_pin_file_threshold")) { in __sbi_store()
740 if (!strcmp(a->attr.name, "gc_reclaimed_segments")) { in __sbi_store()
747 if (!strcmp(a->attr.name, "seq_file_ra_mul")) { in __sbi_store()
755 if (!strcmp(a->attr.name, "max_fragment_chunk")) { in __sbi_store()
763 if (!strcmp(a->attr.name, "max_fragment_hole")) { in __sbi_store()
771 if (!strcmp(a->attr.name, "peak_atomic_write")) { in __sbi_store()
778 if (!strcmp(a->attr.name, "committed_atomic_block")) { in __sbi_store()
785 if (!strcmp(a->attr.name, "revoked_atomic_block")) { in __sbi_store()
792 if (!strcmp(a->attr.name, "readdir_ra")) { in __sbi_store()
797 if (!strcmp(a->attr.name, "hot_data_age_threshold")) { in __sbi_store()
806 if (!strcmp(a->attr.name, "warm_data_age_threshold")) { in __sbi_store()
815 if (!strcmp(a->attr.name, "last_age_weight")) { in __sbi_store()
824 if (!strcmp(a->attr.name, "max_read_extent_count")) { in __sbi_store()
831 if (!strcmp(a->attr.name, "ipu_policy")) { in __sbi_store()
841 if (!strcmp(a->attr.name, "dir_level")) { in __sbi_store()
848 if (!strcmp(a->attr.name, "reserved_pin_section")) { in __sbi_store()
855 if (!strcmp(a->attr.name, "gc_boost_gc_multiple")) { in __sbi_store()
862 if (!strcmp(a->attr.name, "gc_boost_gc_greedy")) { in __sbi_store()
874 static ssize_t f2fs_sbi_store(struct f2fs_attr *a, in f2fs_sbi_store() argument
879 bool gc_entry = (!strcmp(a->attr.name, "gc_urgent") || in f2fs_sbi_store()
880 a->struct_type == GC_THREAD); in f2fs_sbi_store()
886 ret = __sbi_store(a, sbi, buf, count); in f2fs_sbi_store()
898 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_attr_show() local
900 return a->show ? a->show(a, sbi, buf) : 0; in f2fs_attr_show()
908 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_attr_store() local
910 return a->store ? a->store(a, sbi, buf, len) : 0; in f2fs_attr_store()
923 struct f2fs_base_attr *a = container_of(attr, in f2fs_base_attr_show() local
926 return a->show ? a->show(a, buf) : 0; in f2fs_base_attr_show()
933 struct f2fs_base_attr *a = container_of(attr, in f2fs_base_attr_store() local
936 return a->store ? a->store(a, buf, len) : 0; in f2fs_base_attr_store()
957 static ssize_t f2fs_feature_show(struct f2fs_base_attr *a, char *buf) in f2fs_feature_show() argument
968 static ssize_t f2fs_tune_show(struct f2fs_base_attr *a, char *buf) in f2fs_tune_show() argument
972 if (!strcmp(a->attr.name, "reclaim_caches_kb")) in f2fs_tune_show()
978 static ssize_t f2fs_tune_store(struct f2fs_base_attr *a, in f2fs_tune_store() argument
988 if (!strcmp(a->attr.name, "reclaim_caches_kb")) in f2fs_tune_store()
1001 static ssize_t f2fs_sb_feature_show(struct f2fs_attr *a, in f2fs_sb_feature_show() argument
1004 if (F2FS_HAS_FEATURE(sbi, a->id)) in f2fs_sb_feature_show()
1529 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_stat_attr_show() local
1531 return a->show ? a->show(a, sbi, buf) : 0; in f2fs_stat_attr_show()
1539 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_stat_attr_store() local
1541 return a->store ? a->store(a, sbi, buf, len) : 0; in f2fs_stat_attr_store()
1567 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_sb_feat_attr_show() local
1569 return a->show ? a->show(a, sbi, buf) : 0; in f2fs_sb_feat_attr_show()