dm: remove unnecessary wrapper around blk_lld_busy
authorMike Snitzer <snitzer@redhat.com>
Mon, 23 Feb 2015 21:36:41 +0000 (16:36 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 31 Mar 2015 16:03:49 +0000 (12:03 -0400)
There is no need for DM to export a wrapper around the already exported
blk_lld_busy().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c
drivers/md/dm.c
include/linux/device-mapper.h

index d376dc87716ebbd64666e10d7ab54805b0e28f76..add6391f3f8e95a32f6828b1d4104a4d358b7100 100644 (file)
@@ -1627,7 +1627,7 @@ static int __pgpath_busy(struct pgpath *pgpath)
 {
        struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev);
 
-       return dm_underlying_device_busy(q);
+       return blk_lld_busy(q);
 }
 
 /*
index 0e5f3441fcda458b0a7dc890e199668a08c9d07f..e7095ebb8d6460c5b4be5584e4d7db4c3bdab274 100644 (file)
@@ -2006,12 +2006,6 @@ out:
        dm_put_live_table(md, srcu_idx);
 }
 
-int dm_underlying_device_busy(struct request_queue *q)
-{
-       return blk_lld_busy(q);
-}
-EXPORT_SYMBOL_GPL(dm_underlying_device_busy);
-
 static int dm_lld_busy(struct request_queue *q)
 {
        int r;
index fd23978d93fe35a91afab5f56d3611c0324d9ceb..51cc1deb7af3a38597a665300ef9405d8dbe3cef 100644 (file)
@@ -605,9 +605,4 @@ static inline unsigned long to_bytes(sector_t n)
        return (n << SECTOR_SHIFT);
 }
 
-/*-----------------------------------------------------------------
- * Helper for block layer and dm core operations
- *---------------------------------------------------------------*/
-int dm_underlying_device_busy(struct request_queue *q);
-
 #endif /* _LINUX_DEVICE_MAPPER_H */