diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-08-09 03:54:55 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:49:37 +0100 |
commit | 9f4fe9ad206028fb77fe8d1b485f81d186df1645 (patch) | |
tree | fd8e66f729ba3a2127a4ddba0d776717f540c14c /drivers/block/drbd/drbd_int.h | |
parent | 79a3c8d38cabd1a900340852e527b0a4ce8a459d (diff) |
drbd: Replace vnr_to_mdev() with conn_peer_device()
The new function returns a peer device, which allows us to eliminate a few
instances of first_peer_device().
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 4f4d2dbe1bb9..26211513d6de 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h @@ -856,14 +856,6 @@ static inline unsigned int device_to_minor(struct drbd_device *device) return device->minor; } -static inline struct drbd_device *vnr_to_device(struct drbd_connection *connection, int vnr) -{ - struct drbd_peer_device *peer_device; - - peer_device = idr_find(&connection->peer_devices, vnr); - return peer_device ? peer_device->device : NULL; -} - /* * function declarations *************************/ |