[PATCH 2/6] SQUASHME: pmem: Remove getgeo

From: Boaz Harrosh
Date: Tue Mar 31 2015 - 09:24:35 EST



Remove getgeo. It is not needed for modern fdisk and was never
needed for libgparted and cfdisk.

Signed-off-by: Boaz Harrosh <boaz@xxxxxxxxxxxxx>
---
drivers/block/pmem.c | 10 ----------
1 file changed, 10 deletions(-)

diff --git a/drivers/block/pmem.c b/drivers/block/pmem.c
index 545b13b..dcb524f 100644
--- a/drivers/block/pmem.c
+++ b/drivers/block/pmem.c
@@ -44,15 +44,6 @@ struct pmem_device {
static int pmem_major;
static atomic_t pmem_index;

-static int pmem_getgeo(struct block_device *bd, struct hd_geometry *geo)
-{
- /* some standard values */
- geo->heads = 1 << 6;
- geo->sectors = 1 << 5;
- geo->cylinders = get_capacity(bd->bd_disk) >> 11;
- return 0;
-}
-
/*
* direct translation from (pmem,sector) => void*
* We do not require that sector be page aligned.
@@ -214,7 +205,6 @@ static const struct block_device_operations pmem_fops = {
.owner = THIS_MODULE,
.rw_page = pmem_rw_page,
.direct_access = pmem_direct_access,
- .getgeo = pmem_getgeo,
};

/* pmem->phys_addr and pmem->size need to be set.
--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/