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
0f09a4e3
Commit
0f09a4e3
authored
Nov 04, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Plain Diff
Merge mulgrave.(none):/home/jejb/BK/scsi-megaraid-2.5
into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
parents
2b93d0c8
20333d17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/scsi/megaraid.c
drivers/scsi/megaraid.c
+2
-2
No files found.
drivers/scsi/megaraid.c
View file @
0f09a4e3
...
...
@@ -4065,7 +4065,7 @@ int megaraid_biosparam (struct scsi_device *sdev, struct block_device *bdev,
/* Default heads (64) & sectors (32) */
heads
=
64
;
sectors
=
32
;
cylinders
=
(
unsigned
long
)
capacity
/
(
heads
*
sectors
)
;
cylinders
=
(
unsigned
long
)
capacity
>>
11
;
/* Handle extended translation size for logical drives > 1Gb */
if
(
capacity
>=
0x200000
)
{
...
...
@@ -4153,7 +4153,7 @@ mega_partsize(struct block_device *bdev, sector_t capacity, int *geom)
return
-
1
;
}
cyls
=
capacity
/
(
heads
*
sectors
);
cyls
=
(
unsigned
long
)
capacity
/
(
heads
*
sectors
);
geom
[
0
]
=
heads
;
geom
[
1
]
=
sectors
;
...
...
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