projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4907732
)
md: don't reference gendisk in getgeo
author
NeilBrown
<neilb@suse.de>
Sun, 28 Mar 2010 23:51:42 +0000
(10:51 +1100)
committer
NeilBrown
<neilb@suse.de>
Tue, 18 May 2010 05:27:52 +0000
(15:27 +1000)
Using ->array_sectors rather than get_capacity() is more
direct and is a step towards relaxing the tight connection
between mddev and gendisk.
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 117663d2a4e525a67b3477554ac098e8b14f775a..69f2a8e6ccdfa56061893c02e690c73a4c1f2265 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-5556,7
+5556,7
@@
static int md_getgeo(struct block_device *bdev, struct hd_geometry *geo)
geo->heads = 2;
geo->sectors = 4;
- geo->cylinders =
get_capacity(mddev->gendisk)
/ 8;
+ geo->cylinders =
mddev->array_sectors
/ 8;
return 0;
}