diff options
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r-- | include/linux/genhd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 04524c213de1..206cdf96c3a7 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
@@ -59,6 +59,7 @@ enum { | |||
59 | }; | 59 | }; |
60 | 60 | ||
61 | #define DISK_MAX_PARTS 256 | 61 | #define DISK_MAX_PARTS 256 |
62 | #define DISK_NAME_LEN 32 | ||
62 | 63 | ||
63 | #include <linux/major.h> | 64 | #include <linux/major.h> |
64 | #include <linux/device.h> | 65 | #include <linux/device.h> |
@@ -140,7 +141,7 @@ struct gendisk { | |||
140 | int minors; /* maximum number of minors, =1 for | 141 | int minors; /* maximum number of minors, =1 for |
141 | * disks that can't be partitioned. */ | 142 | * disks that can't be partitioned. */ |
142 | 143 | ||
143 | char disk_name[32]; /* name of major driver */ | 144 | char disk_name[DISK_NAME_LEN]; /* name of major driver */ |
144 | 145 | ||
145 | /* Array of pointers to partitions indexed by partno. | 146 | /* Array of pointers to partitions indexed by partno. |
146 | * Protected with matching bdev lock but stat and other | 147 | * Protected with matching bdev lock but stat and other |