Lines Matching refs:buf
31 #define NILFS_SHOW_TIME(time_t_val, buf) ({ \ argument
37 count = scnprintf(buf, PAGE_SIZE, \
46 struct attribute *attr, char *buf) \
54 return a->show ? a->show(a, nilfs, buf) : 0; \
58 const char *buf, size_t len) \
66 return a->store ? a->store(a, nilfs, buf, len) : 0; \
120 struct nilfs_root *root, char *buf) in nilfs_snapshot_inodes_count_show() argument
122 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_inodes_count_show()
128 struct nilfs_root *root, char *buf) in nilfs_snapshot_blocks_count_show() argument
130 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_blocks_count_show()
141 struct nilfs_root *root, char *buf) in nilfs_snapshot_README_show() argument
143 return snprintf(buf, PAGE_SIZE, snapshot_readme_str); in nilfs_snapshot_README_show()
158 struct attribute *attr, char *buf) in nilfs_snapshot_attr_show() argument
165 return a->show ? a->show(a, root, buf) : 0; in nilfs_snapshot_attr_show()
170 const char *buf, size_t len) in nilfs_snapshot_attr_store() argument
177 return a->store ? a->store(a, root, buf, len) : 0; in nilfs_snapshot_attr_store()
242 struct the_nilfs *nilfs, char *buf) in nilfs_mounted_snapshots_README_show() argument
244 return snprintf(buf, PAGE_SIZE, mounted_snapshots_readme_str); in nilfs_mounted_snapshots_README_show()
265 char *buf) in nilfs_checkpoints_checkpoints_number_show() argument
282 return snprintf(buf, PAGE_SIZE, "%llu\n", ncheckpoints); in nilfs_checkpoints_checkpoints_number_show()
288 char *buf) in nilfs_checkpoints_snapshots_number_show() argument
305 return snprintf(buf, PAGE_SIZE, "%llu\n", nsnapshots); in nilfs_checkpoints_snapshots_number_show()
311 char *buf) in nilfs_checkpoints_last_seg_checkpoint_show() argument
319 return snprintf(buf, PAGE_SIZE, "%llu\n", last_cno); in nilfs_checkpoints_last_seg_checkpoint_show()
325 char *buf) in nilfs_checkpoints_next_checkpoint_show() argument
333 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show()
347 struct the_nilfs *nilfs, char *buf) in nilfs_checkpoints_README_show() argument
349 return snprintf(buf, PAGE_SIZE, checkpoints_readme_str); in nilfs_checkpoints_README_show()
378 char *buf) in nilfs_segments_segments_number_show() argument
380 return snprintf(buf, PAGE_SIZE, "%lu\n", nilfs->ns_nsegments); in nilfs_segments_segments_number_show()
386 char *buf) in nilfs_segments_blocks_per_segment_show() argument
388 return snprintf(buf, PAGE_SIZE, "%lu\n", nilfs->ns_blocks_per_segment); in nilfs_segments_blocks_per_segment_show()
394 char *buf) in nilfs_segments_clean_segments_show() argument
402 return snprintf(buf, PAGE_SIZE, "%lu\n", ncleansegs); in nilfs_segments_clean_segments_show()
408 char *buf) in nilfs_segments_dirty_segments_show() argument
422 return snprintf(buf, PAGE_SIZE, "%llu\n", sustat.ss_ndirtysegs); in nilfs_segments_dirty_segments_show()
436 char *buf) in nilfs_segments_README_show() argument
438 return snprintf(buf, PAGE_SIZE, segments_readme_str); in nilfs_segments_README_show()
467 char *buf) in nilfs_segctor_last_pseg_block_show() argument
475 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_segctor_last_pseg_block_show()
482 char *buf) in nilfs_segctor_last_seg_sequence_show() argument
490 return snprintf(buf, PAGE_SIZE, "%llu\n", last_seq); in nilfs_segctor_last_seg_sequence_show()
496 char *buf) in nilfs_segctor_last_seg_checkpoint_show() argument
504 return snprintf(buf, PAGE_SIZE, "%llu\n", last_cno); in nilfs_segctor_last_seg_checkpoint_show()
510 char *buf) in nilfs_segctor_current_seg_sequence_show() argument
518 return snprintf(buf, PAGE_SIZE, "%llu\n", seg_seq); in nilfs_segctor_current_seg_sequence_show()
524 char *buf) in nilfs_segctor_current_last_full_seg_show() argument
532 return snprintf(buf, PAGE_SIZE, "%llu\n", segnum); in nilfs_segctor_current_last_full_seg_show()
538 char *buf) in nilfs_segctor_next_full_seg_show() argument
546 return snprintf(buf, PAGE_SIZE, "%llu\n", nextnum); in nilfs_segctor_next_full_seg_show()
552 char *buf) in nilfs_segctor_next_pseg_offset_show() argument
560 return snprintf(buf, PAGE_SIZE, "%lu\n", pseg_offset); in nilfs_segctor_next_pseg_offset_show()
566 char *buf) in nilfs_segctor_next_checkpoint_show() argument
574 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_segctor_next_checkpoint_show()
580 char *buf) in nilfs_segctor_last_seg_write_time_show() argument
588 return NILFS_SHOW_TIME(ctime, buf); in nilfs_segctor_last_seg_write_time_show()
594 char *buf) in nilfs_segctor_last_seg_write_time_secs_show() argument
602 return snprintf(buf, PAGE_SIZE, "%llu\n", (unsigned long long)ctime); in nilfs_segctor_last_seg_write_time_secs_show()
608 char *buf) in nilfs_segctor_last_nongc_write_time_show() argument
616 return NILFS_SHOW_TIME(nongc_ctime, buf); in nilfs_segctor_last_nongc_write_time_show()
622 char *buf) in nilfs_segctor_last_nongc_write_time_secs_show() argument
630 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_segctor_last_nongc_write_time_secs_show()
637 char *buf) in nilfs_segctor_dirty_data_blocks_count_show() argument
645 return snprintf(buf, PAGE_SIZE, "%u\n", ndirtyblks); in nilfs_segctor_dirty_data_blocks_count_show()
680 struct the_nilfs *nilfs, char *buf) in nilfs_segctor_README_show() argument
682 return snprintf(buf, PAGE_SIZE, segctor_readme_str); in nilfs_segctor_README_show()
729 char *buf) in nilfs_superblock_sb_write_time_show() argument
737 return NILFS_SHOW_TIME(sbwtime, buf); in nilfs_superblock_sb_write_time_show()
743 char *buf) in nilfs_superblock_sb_write_time_secs_show() argument
751 return snprintf(buf, PAGE_SIZE, "%llu\n", (unsigned long long)sbwtime); in nilfs_superblock_sb_write_time_secs_show()
757 char *buf) in nilfs_superblock_sb_write_count_show() argument
765 return snprintf(buf, PAGE_SIZE, "%u\n", sbwcount); in nilfs_superblock_sb_write_count_show()
771 char *buf) in nilfs_superblock_sb_update_frequency_show() argument
779 return snprintf(buf, PAGE_SIZE, "%u\n", sb_update_freq); in nilfs_superblock_sb_update_frequency_show()
785 const char *buf, size_t count) in nilfs_superblock_sb_update_frequency_store() argument
790 err = kstrtouint(skip_spaces(buf), 0, &val); in nilfs_superblock_sb_update_frequency_store()
824 struct the_nilfs *nilfs, char *buf) in nilfs_superblock_README_show() argument
826 return snprintf(buf, PAGE_SIZE, sb_readme_str); in nilfs_superblock_README_show()
855 char *buf) in nilfs_dev_revision_show() argument
861 return snprintf(buf, PAGE_SIZE, "%d.%d\n", major, minor); in nilfs_dev_revision_show()
867 char *buf) in nilfs_dev_blocksize_show() argument
869 return snprintf(buf, PAGE_SIZE, "%u\n", nilfs->ns_blocksize); in nilfs_dev_blocksize_show()
875 char *buf) in nilfs_dev_device_size_show() argument
880 return snprintf(buf, PAGE_SIZE, "%llu\n", dev_size); in nilfs_dev_device_size_show()
886 char *buf) in nilfs_dev_free_blocks_show() argument
891 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_dev_free_blocks_show()
898 char *buf) in nilfs_dev_uuid_show() argument
902 return snprintf(buf, PAGE_SIZE, "%pUb\n", sbp[0]->s_uuid); in nilfs_dev_uuid_show()
908 char *buf) in nilfs_dev_volume_name_show() argument
912 return scnprintf(buf, sizeof(sbp[0]->s_volume_name), "%s\n", in nilfs_dev_volume_name_show()
928 char *buf) in nilfs_dev_README_show() argument
930 return snprintf(buf, PAGE_SIZE, dev_readme_str); in nilfs_dev_README_show()
953 struct attribute *attr, char *buf) in nilfs_dev_attr_show() argument
960 return a->show ? a->show(a, nilfs, buf) : 0; in nilfs_dev_attr_show()
965 const char *buf, size_t len) in nilfs_dev_attr_store() argument
972 return a->store ? a->store(a, nilfs, buf, len) : 0; in nilfs_dev_attr_store()
1073 struct attribute *attr, char *buf) in nilfs_feature_revision_show() argument
1075 return snprintf(buf, PAGE_SIZE, "%d.%d\n", in nilfs_feature_revision_show()
1086 char *buf) in nilfs_feature_README_show() argument
1088 return snprintf(buf, PAGE_SIZE, features_readme_str); in nilfs_feature_README_show()