Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
fa6ead8c
Commit
fa6ead8c
authored
Jun 02, 2003
by
Alexander Viro
Committed by
Ben Collins
Jun 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ->minor_shift removal
disk->minor_shift is not used anymore. Remove it.
parent
59e55019
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
10 deletions
+1
-10
drivers/block/acsi.c
drivers/block/acsi.c
+1
-3
drivers/block/genhd.c
drivers/block/genhd.c
+0
-2
drivers/ide/ide-cd.c
drivers/ide/ide-cd.c
+0
-1
drivers/ide/ide-disk.c
drivers/ide/ide-disk.c
+0
-1
drivers/ide/ide-floppy.c
drivers/ide/ide-floppy.c
+0
-1
include/linux/genhd.h
include/linux/genhd.h
+0
-2
No files found.
drivers/block/acsi.c
View file @
fa6ead8c
...
...
@@ -1728,10 +1728,8 @@ int acsi_init( void )
sprintf
(
disk
->
disk_name
,
"ad%c"
,
'a'
+
i
);
disk
->
major
=
ACSI_MAJOR
;
disk
->
first_minor
=
i
<<
4
;
if
(
acsi_info
[
i
].
type
!=
HARDDISK
)
{
disk
->
minor_shift
=
0
;
if
(
acsi_info
[
i
].
type
!=
HARDDISK
)
disk
->
minors
=
1
;
}
disk
->
fops
=
&
acsi_fops
;
disk
->
private_data
=
&
acsi_info
[
i
];
set_capacity
(
disk
,
acsi_info
[
i
].
size
);
...
...
drivers/block/genhd.c
View file @
fa6ead8c
...
...
@@ -538,8 +538,6 @@ struct gendisk *alloc_disk(int minors)
memset
(
disk
->
part
,
0
,
size
);
}
disk
->
minors
=
minors
;
while
(
minors
>>=
1
)
disk
->
minor_shift
++
;
kobj_set_kset_s
(
disk
,
block_subsys
);
kobject_init
(
&
disk
->
kobj
);
rand_initialize_disk
(
disk
);
...
...
drivers/ide/ide-cd.c
View file @
fa6ead8c
...
...
@@ -3376,7 +3376,6 @@ static int ide_cdrom_attach (ide_drive_t *drive)
drive
->
driver_data
=
info
;
DRIVER
(
drive
)
->
busy
++
;
g
->
minors
=
1
;
g
->
minor_shift
=
0
;
snprintf
(
g
->
devfs_name
,
sizeof
(
g
->
devfs_name
),
"%s/cd"
,
drive
->
devfs_name
);
g
->
driverfs_dev
=
&
drive
->
gendev
;
...
...
drivers/ide/ide-disk.c
View file @
fa6ead8c
...
...
@@ -1814,7 +1814,6 @@ static int idedisk_attach(ide_drive_t *drive)
}
DRIVER
(
drive
)
->
busy
--
;
g
->
minors
=
1
<<
PARTN_BITS
;
g
->
minor_shift
=
PARTN_BITS
;
strcpy
(
g
->
devfs_name
,
drive
->
devfs_name
);
g
->
driverfs_dev
=
&
drive
->
gendev
;
g
->
flags
=
drive
->
removable
?
GENHD_FL_REMOVABLE
:
0
;
...
...
drivers/ide/ide-floppy.c
View file @
fa6ead8c
...
...
@@ -2057,7 +2057,6 @@ static int idefloppy_attach (ide_drive_t *drive)
idefloppy_setup
(
drive
,
floppy
);
DRIVER
(
drive
)
->
busy
--
;
g
->
minors
=
1
<<
PARTN_BITS
;
g
->
minor_shift
=
PARTN_BITS
;
g
->
driverfs_dev
=
&
drive
->
gendev
;
strcpy
(
g
->
devfs_name
,
drive
->
devfs_name
);
g
->
flags
=
drive
->
removable
?
GENHD_FL_REMOVABLE
:
0
;
...
...
include/linux/genhd.h
View file @
fa6ead8c
...
...
@@ -83,8 +83,6 @@ 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 */
struct
hd_struct
**
part
;
/* [indexed by minor] */
struct
block_device_operations
*
fops
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment