• Home
  • Raw
  • Download

Lines Matching refs:buf

24 					struct attribute *attr, char *buf) \
32 return a->show ? a->show(a, nilfs, buf) : 0; \
36 const char *buf, size_t len) \
44 return a->store ? a->store(a, nilfs, buf, len) : 0; \
96 struct nilfs_root *root, char *buf) in nilfs_snapshot_inodes_count_show() argument
98 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_inodes_count_show()
104 struct nilfs_root *root, char *buf) in nilfs_snapshot_blocks_count_show() argument
106 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_blocks_count_show()
117 struct nilfs_root *root, char *buf) in nilfs_snapshot_README_show() argument
119 return snprintf(buf, PAGE_SIZE, snapshot_readme_str); in nilfs_snapshot_README_show()
134 struct attribute *attr, char *buf) in nilfs_snapshot_attr_show() argument
141 return a->show ? a->show(a, root, buf) : 0; in nilfs_snapshot_attr_show()
146 const char *buf, size_t len) in nilfs_snapshot_attr_store() argument
153 return a->store ? a->store(a, root, buf, len) : 0; in nilfs_snapshot_attr_store()
218 struct the_nilfs *nilfs, char *buf) in nilfs_mounted_snapshots_README_show() argument
220 return snprintf(buf, PAGE_SIZE, mounted_snapshots_readme_str); in nilfs_mounted_snapshots_README_show()
241 char *buf) in nilfs_checkpoints_checkpoints_number_show() argument
258 return snprintf(buf, PAGE_SIZE, "%llu\n", ncheckpoints); in nilfs_checkpoints_checkpoints_number_show()
264 char *buf) in nilfs_checkpoints_snapshots_number_show() argument
281 return snprintf(buf, PAGE_SIZE, "%llu\n", nsnapshots); in nilfs_checkpoints_snapshots_number_show()
287 char *buf) in nilfs_checkpoints_last_seg_checkpoint_show() argument
295 return snprintf(buf, PAGE_SIZE, "%llu\n", last_cno); in nilfs_checkpoints_last_seg_checkpoint_show()
301 char *buf) in nilfs_checkpoints_next_checkpoint_show() argument
309 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show()
323 struct the_nilfs *nilfs, char *buf) in nilfs_checkpoints_README_show() argument
325 return snprintf(buf, PAGE_SIZE, checkpoints_readme_str); in nilfs_checkpoints_README_show()
354 char *buf) in nilfs_segments_segments_number_show() argument
356 return snprintf(buf, PAGE_SIZE, "%lu\n", nilfs->ns_nsegments); in nilfs_segments_segments_number_show()
362 char *buf) in nilfs_segments_blocks_per_segment_show() argument
364 return snprintf(buf, PAGE_SIZE, "%lu\n", nilfs->ns_blocks_per_segment); in nilfs_segments_blocks_per_segment_show()
370 char *buf) in nilfs_segments_clean_segments_show() argument
378 return snprintf(buf, PAGE_SIZE, "%lu\n", ncleansegs); in nilfs_segments_clean_segments_show()
384 char *buf) in nilfs_segments_dirty_segments_show() argument
398 return snprintf(buf, PAGE_SIZE, "%llu\n", sustat.ss_ndirtysegs); in nilfs_segments_dirty_segments_show()
412 char *buf) in nilfs_segments_README_show() argument
414 return snprintf(buf, PAGE_SIZE, segments_readme_str); in nilfs_segments_README_show()
443 char *buf) in nilfs_segctor_last_pseg_block_show() argument
451 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_segctor_last_pseg_block_show()
458 char *buf) in nilfs_segctor_last_seg_sequence_show() argument
466 return snprintf(buf, PAGE_SIZE, "%llu\n", last_seq); in nilfs_segctor_last_seg_sequence_show()
472 char *buf) in nilfs_segctor_last_seg_checkpoint_show() argument
480 return snprintf(buf, PAGE_SIZE, "%llu\n", last_cno); in nilfs_segctor_last_seg_checkpoint_show()
486 char *buf) in nilfs_segctor_current_seg_sequence_show() argument
494 return snprintf(buf, PAGE_SIZE, "%llu\n", seg_seq); in nilfs_segctor_current_seg_sequence_show()
500 char *buf) in nilfs_segctor_current_last_full_seg_show() argument
508 return snprintf(buf, PAGE_SIZE, "%llu\n", segnum); in nilfs_segctor_current_last_full_seg_show()
514 char *buf) in nilfs_segctor_next_full_seg_show() argument
522 return snprintf(buf, PAGE_SIZE, "%llu\n", nextnum); in nilfs_segctor_next_full_seg_show()
528 char *buf) in nilfs_segctor_next_pseg_offset_show() argument
536 return snprintf(buf, PAGE_SIZE, "%lu\n", pseg_offset); in nilfs_segctor_next_pseg_offset_show()
542 char *buf) in nilfs_segctor_next_checkpoint_show() argument
550 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_segctor_next_checkpoint_show()
556 char *buf) in nilfs_segctor_last_seg_write_time_show() argument
564 return sysfs_emit(buf, "%ptTs\n", &ctime); in nilfs_segctor_last_seg_write_time_show()
570 char *buf) in nilfs_segctor_last_seg_write_time_secs_show() argument
578 return snprintf(buf, PAGE_SIZE, "%llu\n", ctime); in nilfs_segctor_last_seg_write_time_secs_show()
584 char *buf) in nilfs_segctor_last_nongc_write_time_show() argument
592 return sysfs_emit(buf, "%ptTs\n", &nongc_ctime); in nilfs_segctor_last_nongc_write_time_show()
598 char *buf) in nilfs_segctor_last_nongc_write_time_secs_show() argument
606 return snprintf(buf, PAGE_SIZE, "%llu\n", nongc_ctime); in nilfs_segctor_last_nongc_write_time_secs_show()
612 char *buf) in nilfs_segctor_dirty_data_blocks_count_show() argument
620 return snprintf(buf, PAGE_SIZE, "%u\n", ndirtyblks); in nilfs_segctor_dirty_data_blocks_count_show()
655 struct the_nilfs *nilfs, char *buf) in nilfs_segctor_README_show() argument
657 return snprintf(buf, PAGE_SIZE, segctor_readme_str); in nilfs_segctor_README_show()
704 char *buf) in nilfs_superblock_sb_write_time_show() argument
712 return sysfs_emit(buf, "%ptTs\n", &sbwtime); in nilfs_superblock_sb_write_time_show()
718 char *buf) in nilfs_superblock_sb_write_time_secs_show() argument
726 return snprintf(buf, PAGE_SIZE, "%llu\n", sbwtime); in nilfs_superblock_sb_write_time_secs_show()
732 char *buf) in nilfs_superblock_sb_write_count_show() argument
740 return snprintf(buf, PAGE_SIZE, "%u\n", sbwcount); in nilfs_superblock_sb_write_count_show()
746 char *buf) in nilfs_superblock_sb_update_frequency_show() argument
754 return snprintf(buf, PAGE_SIZE, "%u\n", sb_update_freq); in nilfs_superblock_sb_update_frequency_show()
760 const char *buf, size_t count) in nilfs_superblock_sb_update_frequency_store() argument
765 err = kstrtouint(skip_spaces(buf), 0, &val); in nilfs_superblock_sb_update_frequency_store()
800 struct the_nilfs *nilfs, char *buf) in nilfs_superblock_README_show() argument
802 return snprintf(buf, PAGE_SIZE, sb_readme_str); in nilfs_superblock_README_show()
831 char *buf) in nilfs_dev_revision_show() argument
837 return snprintf(buf, PAGE_SIZE, "%d.%d\n", major, minor); in nilfs_dev_revision_show()
843 char *buf) in nilfs_dev_blocksize_show() argument
845 return snprintf(buf, PAGE_SIZE, "%u\n", nilfs->ns_blocksize); in nilfs_dev_blocksize_show()
851 char *buf) in nilfs_dev_device_size_show() argument
856 return snprintf(buf, PAGE_SIZE, "%llu\n", dev_size); in nilfs_dev_device_size_show()
862 char *buf) in nilfs_dev_free_blocks_show() argument
867 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_dev_free_blocks_show()
874 char *buf) in nilfs_dev_uuid_show() argument
878 return snprintf(buf, PAGE_SIZE, "%pUb\n", sbp[0]->s_uuid); in nilfs_dev_uuid_show()
884 char *buf) in nilfs_dev_volume_name_show() argument
888 return scnprintf(buf, sizeof(sbp[0]->s_volume_name), "%s\n", in nilfs_dev_volume_name_show()
904 char *buf) in nilfs_dev_README_show() argument
906 return snprintf(buf, PAGE_SIZE, dev_readme_str); in nilfs_dev_README_show()
929 struct attribute *attr, char *buf) in nilfs_dev_attr_show() argument
936 return a->show ? a->show(a, nilfs, buf) : 0; in nilfs_dev_attr_show()
941 const char *buf, size_t len) in nilfs_dev_attr_store() argument
948 return a->store ? a->store(a, nilfs, buf, len) : 0; in nilfs_dev_attr_store()
1048 struct attribute *attr, char *buf) in nilfs_feature_revision_show() argument
1050 return snprintf(buf, PAGE_SIZE, "%d.%d\n", in nilfs_feature_revision_show()
1061 char *buf) in nilfs_feature_README_show() argument
1063 return snprintf(buf, PAGE_SIZE, features_readme_str); in nilfs_feature_README_show()