The rw_page() interface doesn't provide a clear performance benefit for the
BTT and has had a nonzero maintenance burden, so remove it.

Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com>
Suggested-by: Dan Williams <dan.j.willi...@intel.com>
Suggested-by: Christoph Hellwig <h...@infradead.org>
Cc: Matthew Wilcox <wi...@infradead.org>
---
 drivers/nvdimm/btt.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c
index 14323fa..e10d330 100644
--- a/drivers/nvdimm/btt.c
+++ b/drivers/nvdimm/btt.c
@@ -1236,20 +1236,6 @@ static blk_qc_t btt_make_request(struct request_queue 
*q, struct bio *bio)
        return BLK_QC_T_NONE;
 }
 
-static int btt_rw_page(struct block_device *bdev, sector_t sector,
-               struct page *page, bool is_write)
-{
-       struct btt *btt = bdev->bd_disk->private_data;
-       int rc;
-
-       rc = btt_do_bvec(btt, NULL, page, PAGE_SIZE, 0, is_write, sector);
-       if (rc == 0)
-               page_endio(page, is_write, 0);
-
-       return rc;
-}
-
-
 static int btt_getgeo(struct block_device *bd, struct hd_geometry *geo)
 {
        /* some standard values */
@@ -1261,7 +1247,6 @@ static int btt_getgeo(struct block_device *bd, struct 
hd_geometry *geo)
 
 static const struct block_device_operations btt_fops = {
        .owner =                THIS_MODULE,
-       .rw_page =              btt_rw_page,
        .getgeo =               btt_getgeo,
        .revalidate_disk =      nvdimm_revalidate_disk,
 };
-- 
2.9.4

Reply via email to