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,
64 static ssize_t f2fs_sbi_show(struct f2fs_attr *a,
95 static ssize_t dirty_segments_show(struct f2fs_attr *a, in dirty_segments_show() argument
102 static ssize_t free_segments_show(struct f2fs_attr *a, in free_segments_show() argument
109 static ssize_t ovp_segments_show(struct f2fs_attr *a, in ovp_segments_show() argument
116 static ssize_t lifetime_write_kbytes_show(struct f2fs_attr *a, in lifetime_write_kbytes_show() argument
125 static ssize_t sb_status_show(struct f2fs_attr *a, in sb_status_show() argument
131 static ssize_t cp_status_show(struct f2fs_attr *a, in cp_status_show() argument
137 static ssize_t pending_discard_show(struct f2fs_attr *a, in pending_discard_show() argument
146 static ssize_t gc_mode_show(struct f2fs_attr *a, in gc_mode_show() argument
152 static ssize_t features_show(struct f2fs_attr *a, in features_show() argument
205 static ssize_t current_reserved_blocks_show(struct f2fs_attr *a, in current_reserved_blocks_show() argument
211 static ssize_t unusable_show(struct f2fs_attr *a, in unusable_show() argument
223 static ssize_t encoding_show(struct f2fs_attr *a, in encoding_show() argument
238 static ssize_t mounted_time_sec_show(struct f2fs_attr *a, in mounted_time_sec_show() argument
245 static ssize_t moved_blocks_foreground_show(struct f2fs_attr *a, in moved_blocks_foreground_show() argument
255 static ssize_t moved_blocks_background_show(struct f2fs_attr *a, in moved_blocks_background_show() argument
264 static ssize_t avg_vblocks_show(struct f2fs_attr *a, in avg_vblocks_show() argument
275 static ssize_t main_blkaddr_show(struct f2fs_attr *a, in main_blkaddr_show() argument
282 static ssize_t f2fs_sbi_show(struct f2fs_attr *a, in f2fs_sbi_show() argument
288 ptr = __struct_ptr(sbi, a->struct_type); in f2fs_sbi_show()
292 if (!strcmp(a->attr.name, "extension_list")) { in f2fs_sbi_show()
313 if (!strcmp(a->attr.name, "ckpt_thread_ioprio")) { in f2fs_sbi_show()
326 if (!strcmp(a->attr.name, "compr_written_block")) in f2fs_sbi_show()
329 if (!strcmp(a->attr.name, "compr_saved_block")) in f2fs_sbi_show()
332 if (!strcmp(a->attr.name, "compr_new_inode")) in f2fs_sbi_show()
336 if (!strcmp(a->attr.name, "gc_segment_mode")) in f2fs_sbi_show()
339 if (!strcmp(a->attr.name, "gc_reclaimed_segments")) { in f2fs_sbi_show()
344 if (!strcmp(a->attr.name, "current_atomic_write")) { in f2fs_sbi_show()
350 if (!strcmp(a->attr.name, "peak_atomic_write")) in f2fs_sbi_show()
353 if (!strcmp(a->attr.name, "committed_atomic_block")) in f2fs_sbi_show()
356 if (!strcmp(a->attr.name, "revoked_atomic_block")) in f2fs_sbi_show()
360 if (!strcmp(a->attr.name, "cp_foreground_calls")) in f2fs_sbi_show()
364 if (!strcmp(a->attr.name, "cp_background_calls")) in f2fs_sbi_show()
369 ui = (unsigned int *)(ptr + a->offset); in f2fs_sbi_show()
374 static ssize_t __sbi_store(struct f2fs_attr *a, in __sbi_store() argument
383 ptr = __struct_ptr(sbi, a->struct_type); in __sbi_store()
387 if (!strcmp(a->attr.name, "extension_list")) { in __sbi_store()
422 if (!strcmp(a->attr.name, "ckpt_thread_ioprio")) { in __sbi_store()
454 ui = (unsigned int *)(ptr + a->offset); in __sbi_store()
460 if (a->struct_type == FAULT_INFO_TYPE && t >= BIT(FAULT_MAX)) in __sbi_store()
462 if (a->struct_type == FAULT_INFO_RATE && t >= UINT_MAX) in __sbi_store()
465 if (a->struct_type == RESERVED_BLOCKS) { in __sbi_store()
481 if (!strcmp(a->attr.name, "discard_io_aware_gran")) { in __sbi_store()
492 if (!strcmp(a->attr.name, "discard_granularity")) { in __sbi_store()
503 if (!strcmp(a->attr.name, "max_ordered_discard")) { in __sbi_store()
512 if (!strcmp(a->attr.name, "discard_urgent_util")) { in __sbi_store()
519 if (!strcmp(a->attr.name, "migration_granularity")) { in __sbi_store()
524 if (!strcmp(a->attr.name, "gc_urgent")) { in __sbi_store()
549 if (!strcmp(a->attr.name, "gc_idle")) { in __sbi_store()
564 if (!strcmp(a->attr.name, "gc_remaining_trials")) { in __sbi_store()
573 if (!strcmp(a->attr.name, "iostat_enable")) { in __sbi_store()
580 if (!strcmp(a->attr.name, "iostat_period_ms")) { in __sbi_store()
591 if (!strcmp(a->attr.name, "compr_written_block") || in __sbi_store()
592 !strcmp(a->attr.name, "compr_saved_block")) { in __sbi_store()
600 if (!strcmp(a->attr.name, "compr_new_inode")) { in __sbi_store()
607 if (!strcmp(a->attr.name, "compress_percent")) { in __sbi_store()
614 if (!strcmp(a->attr.name, "compress_watermark")) { in __sbi_store()
622 if (!strcmp(a->attr.name, "atgc_candidate_ratio")) { in __sbi_store()
629 if (!strcmp(a->attr.name, "atgc_age_weight")) { in __sbi_store()
636 if (!strcmp(a->attr.name, "gc_segment_mode")) { in __sbi_store()
644 if (!strcmp(a->attr.name, "gc_reclaimed_segments")) { in __sbi_store()
651 if (!strcmp(a->attr.name, "seq_file_ra_mul")) { in __sbi_store()
659 if (!strcmp(a->attr.name, "max_fragment_chunk")) { in __sbi_store()
667 if (!strcmp(a->attr.name, "max_fragment_hole")) { in __sbi_store()
675 if (!strcmp(a->attr.name, "peak_atomic_write")) { in __sbi_store()
682 if (!strcmp(a->attr.name, "committed_atomic_block")) { in __sbi_store()
689 if (!strcmp(a->attr.name, "revoked_atomic_block")) { in __sbi_store()
696 if (!strcmp(a->attr.name, "readdir_ra")) { in __sbi_store()
701 if (!strcmp(a->attr.name, "hot_data_age_threshold")) { in __sbi_store()
710 if (!strcmp(a->attr.name, "warm_data_age_threshold")) { in __sbi_store()
719 if (!strcmp(a->attr.name, "last_age_weight")) { in __sbi_store()
728 if (!strcmp(a->attr.name, "ipu_policy")) { in __sbi_store()
742 static ssize_t f2fs_sbi_store(struct f2fs_attr *a, in f2fs_sbi_store() argument
747 bool gc_entry = (!strcmp(a->attr.name, "gc_urgent") || in f2fs_sbi_store()
748 a->struct_type == GC_THREAD); in f2fs_sbi_store()
754 ret = __sbi_store(a, sbi, buf, count); in f2fs_sbi_store()
766 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_attr_show() local
768 return a->show ? a->show(a, sbi, buf) : 0; in f2fs_attr_show()
776 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_attr_store() local
778 return a->store ? a->store(a, sbi, buf, len) : 0; in f2fs_attr_store()
806 static ssize_t f2fs_feature_show(struct f2fs_attr *a, in f2fs_feature_show() argument
818 static ssize_t f2fs_sb_feature_show(struct f2fs_attr *a, in f2fs_sb_feature_show() argument
821 if (F2FS_HAS_FEATURE(sbi, a->id)) in f2fs_sb_feature_show()
1274 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_stat_attr_show() local
1276 return a->show ? a->show(a, sbi, buf) : 0; in f2fs_stat_attr_show()
1284 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_stat_attr_store() local
1286 return a->store ? a->store(a, sbi, buf, len) : 0; in f2fs_stat_attr_store()
1312 struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); in f2fs_sb_feat_attr_show() local
1314 return a->show ? a->show(a, sbi, buf) : 0; in f2fs_sb_feat_attr_show()