diff options
author | Vyacheslav Dubeyko <slava@dubeyko.com> | 2012-07-30 17:42:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:19 -0400 |
commit | 8c74ac0557b4cabc9017c2740c5f62b330192416 (patch) | |
tree | 8b2e470e21b790f5f0da20cd54e693011217ba1d /include | |
parent | 572d8b3945a31bee7c40d21556803e4807fd9141 (diff) |
nilfs2: add omitted comments for structures in nilfs2_fs.h
Add omitted comments for structures in nilfs2_fs.h.
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nilfs2_fs.h | 63 |
1 files changed, 39 insertions, 24 deletions
diff --git a/include/linux/nilfs2_fs.h b/include/linux/nilfs2_fs.h index 89bd4a4dcfb4..98755767c7b0 100644 --- a/include/linux/nilfs2_fs.h +++ b/include/linux/nilfs2_fs.h | |||
@@ -293,7 +293,7 @@ struct nilfs_dir_entry { | |||
293 | __le64 inode; /* Inode number */ | 293 | __le64 inode; /* Inode number */ |
294 | __le16 rec_len; /* Directory entry length */ | 294 | __le16 rec_len; /* Directory entry length */ |
295 | __u8 name_len; /* Name length */ | 295 | __u8 name_len; /* Name length */ |
296 | __u8 file_type; | 296 | __u8 file_type; /* Dir entry type (file, dir, etc) */ |
297 | char name[NILFS_NAME_LEN]; /* File name */ | 297 | char name[NILFS_NAME_LEN]; /* File name */ |
298 | char pad; | 298 | char pad; |
299 | }; | 299 | }; |
@@ -395,7 +395,7 @@ union nilfs_binfo { | |||
395 | }; | 395 | }; |
396 | 396 | ||
397 | /** | 397 | /** |
398 | * struct nilfs_segment_summary - segment summary | 398 | * struct nilfs_segment_summary - segment summary header |
399 | * @ss_datasum: checksum of data | 399 | * @ss_datasum: checksum of data |
400 | * @ss_sumsum: checksum of segment summary | 400 | * @ss_sumsum: checksum of segment summary |
401 | * @ss_magic: magic number | 401 | * @ss_magic: magic number |
@@ -683,9 +683,9 @@ struct nilfs_sufile_header { | |||
683 | 683 | ||
684 | /** | 684 | /** |
685 | * nilfs_suinfo - segment usage information | 685 | * nilfs_suinfo - segment usage information |
686 | * @sui_lastmod: | 686 | * @sui_lastmod: timestamp of last modification |
687 | * @sui_nblocks: | 687 | * @sui_nblocks: number of written blocks in segment |
688 | * @sui_flags: | 688 | * @sui_flags: segment usage flags |
689 | */ | 689 | */ |
690 | struct nilfs_suinfo { | 690 | struct nilfs_suinfo { |
691 | __u64 sui_lastmod; | 691 | __u64 sui_lastmod; |
@@ -716,9 +716,10 @@ enum { | |||
716 | }; | 716 | }; |
717 | 717 | ||
718 | /** | 718 | /** |
719 | * struct nilfs_cpmode - | 719 | * struct nilfs_cpmode - change checkpoint mode structure |
720 | * @cc_cno: | 720 | * @cm_cno: checkpoint number |
721 | * @cc_mode: | 721 | * @cm_mode: mode of checkpoint |
722 | * @cm_pad: padding | ||
722 | */ | 723 | */ |
723 | struct nilfs_cpmode { | 724 | struct nilfs_cpmode { |
724 | __u64 cm_cno; | 725 | __u64 cm_cno; |
@@ -728,11 +729,11 @@ struct nilfs_cpmode { | |||
728 | 729 | ||
729 | /** | 730 | /** |
730 | * struct nilfs_argv - argument vector | 731 | * struct nilfs_argv - argument vector |
731 | * @v_base: | 732 | * @v_base: pointer on data array from userspace |
732 | * @v_nmembs: | 733 | * @v_nmembs: number of members in data array |
733 | * @v_size: | 734 | * @v_size: size of data array in bytes |
734 | * @v_flags: | 735 | * @v_flags: flags |
735 | * @v_index: | 736 | * @v_index: start number of target data items |
736 | */ | 737 | */ |
737 | struct nilfs_argv { | 738 | struct nilfs_argv { |
738 | __u64 v_base; | 739 | __u64 v_base; |
@@ -743,9 +744,9 @@ struct nilfs_argv { | |||
743 | }; | 744 | }; |
744 | 745 | ||
745 | /** | 746 | /** |
746 | * struct nilfs_period - | 747 | * struct nilfs_period - period of checkpoint numbers |
747 | * @p_start: | 748 | * @p_start: start checkpoint number (inclusive) |
748 | * @p_end: | 749 | * @p_end: end checkpoint number (exclusive) |
749 | */ | 750 | */ |
750 | struct nilfs_period { | 751 | struct nilfs_period { |
751 | __u64 p_start; | 752 | __u64 p_start; |
@@ -753,7 +754,7 @@ struct nilfs_period { | |||
753 | }; | 754 | }; |
754 | 755 | ||
755 | /** | 756 | /** |
756 | * struct nilfs_cpstat - | 757 | * struct nilfs_cpstat - checkpoint statistics |
757 | * @cs_cno: checkpoint number | 758 | * @cs_cno: checkpoint number |
758 | * @cs_ncps: number of checkpoints | 759 | * @cs_ncps: number of checkpoints |
759 | * @cs_nsss: number of snapshots | 760 | * @cs_nsss: number of snapshots |
@@ -765,7 +766,7 @@ struct nilfs_cpstat { | |||
765 | }; | 766 | }; |
766 | 767 | ||
767 | /** | 768 | /** |
768 | * struct nilfs_sustat - | 769 | * struct nilfs_sustat - segment usage statistics |
769 | * @ss_nsegs: number of segments | 770 | * @ss_nsegs: number of segments |
770 | * @ss_ncleansegs: number of clean segments | 771 | * @ss_ncleansegs: number of clean segments |
771 | * @ss_ndirtysegs: number of dirty segments | 772 | * @ss_ndirtysegs: number of dirty segments |
@@ -784,10 +785,10 @@ struct nilfs_sustat { | |||
784 | 785 | ||
785 | /** | 786 | /** |
786 | * struct nilfs_vinfo - virtual block number information | 787 | * struct nilfs_vinfo - virtual block number information |
787 | * @vi_vblocknr: | 788 | * @vi_vblocknr: virtual block number |
788 | * @vi_start: | 789 | * @vi_start: start checkpoint number (inclusive) |
789 | * @vi_end: | 790 | * @vi_end: end checkpoint number (exclusive) |
790 | * @vi_blocknr: | 791 | * @vi_blocknr: disk block number |
791 | */ | 792 | */ |
792 | struct nilfs_vinfo { | 793 | struct nilfs_vinfo { |
793 | __u64 vi_vblocknr; | 794 | __u64 vi_vblocknr; |
@@ -797,7 +798,15 @@ struct nilfs_vinfo { | |||
797 | }; | 798 | }; |
798 | 799 | ||
799 | /** | 800 | /** |
800 | * struct nilfs_vdesc - | 801 | * struct nilfs_vdesc - descriptor of virtual block number |
802 | * @vd_ino: inode number | ||
803 | * @vd_cno: checkpoint number | ||
804 | * @vd_vblocknr: virtual block number | ||
805 | * @vd_period: period of checkpoint numbers | ||
806 | * @vd_blocknr: disk block number | ||
807 | * @vd_offset: logical block offset inside a file | ||
808 | * @vd_flags: flags (data or node block) | ||
809 | * @vd_pad: padding | ||
801 | */ | 810 | */ |
802 | struct nilfs_vdesc { | 811 | struct nilfs_vdesc { |
803 | __u64 vd_ino; | 812 | __u64 vd_ino; |
@@ -811,7 +820,13 @@ struct nilfs_vdesc { | |||
811 | }; | 820 | }; |
812 | 821 | ||
813 | /** | 822 | /** |
814 | * struct nilfs_bdesc - | 823 | * struct nilfs_bdesc - descriptor of disk block number |
824 | * @bd_ino: inode number | ||
825 | * @bd_oblocknr: disk block address (for skipping dead blocks) | ||
826 | * @bd_blocknr: disk block address | ||
827 | * @bd_offset: logical block offset inside a file | ||
828 | * @bd_level: level in the b-tree organization | ||
829 | * @bd_pad: padding | ||
815 | */ | 830 | */ |
816 | struct nilfs_bdesc { | 831 | struct nilfs_bdesc { |
817 | __u64 bd_ino; | 832 | __u64 bd_ino; |