summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-10-15 04:23:32 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-15 04:23:32 -0700
commit847c633af8a42e49030ff941fb64fb3ece6c95ef (patch)
tree0441adaf5700c02af59676d4da4921f805e66a81 /include/linux
parentb8ed178862df2381b14b12c9b3c4f7f39053c5e5 (diff)
[PATCH] disk->minor_shift cleanup
new field - disk->minors (1 << disk->minor_shift). Almost all uses of ->minor_shift had that form and thus had been replaced.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/genhd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 70c58d8b7e86..6e1f68900bba 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -74,6 +74,7 @@ struct hd_struct {
struct gendisk {
int major; /* major number of driver */
int first_minor;
+ int minors;
int minor_shift; /* number of times minor is shifted to
get real minor */
char disk_name[16]; /* name of major driver */