diff options
| author | Martin Pool <mbp@sourcefrog.net> | 2004-07-28 09:12:45 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-28 09:12:45 -0700 |
| commit | 7ee0abe68dd89552dbd003f4c297cb0c746eb175 (patch) | |
| tree | 2af71c7de13579354b39d9ccd575cfd921eba18c /include/linux | |
| parent | b34fbc4c8fdc91712ffe0ddbef0c7d5dd2571120 (diff) | |
[PATCH] trivial doc patch for partitions
It's slightly hard to see how these variables are used; this patch adds a
short description.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 1 | ||||
| -rw-r--r-- | include/linux/genhd.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 819e67e3a95b..7f64f2b2cada 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -356,6 +356,7 @@ struct block_device { struct block_device * bd_contains; unsigned bd_block_size; struct hd_struct * bd_part; + /* number of times partitions within this device have been opened. */ unsigned bd_part_count; int bd_invalidated; struct gendisk * bd_disk; diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 91443522b9d8..884d18df6716 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -82,7 +82,8 @@ struct disk_stats { struct gendisk { int major; /* major number of driver */ int first_minor; - int minors; + int minors; /* maximum number of minors, =1 for + * disks that can't be partitioned. */ char disk_name[32]; /* name of major driver */ struct hd_struct **part; /* [indexed by minor] */ struct block_device_operations *fops; |
