]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
rbd: rename rbd_device->id
authorAlex Elder <elder@inktank.com>
Tue, 3 Jul 2012 21:01:19 +0000 (16:01 -0500)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:49 +0000 (18:15 -0700)
commitde71a2970d57463d3d965025e33ec3adcf391248
treec1f2c05961798650d5cefeea54277033bb2990a6
parent8e94af8e2b582e5915abc171a28130881d1c26e4
rbd: rename rbd_device->id

The "id" field of an rbd device structure represents the unique
client-local device id mapped to the underlying rbd image.  Each rbd
image will have another id--the image id--and each snapshot has its
own id as well.  The simple name "id" no longer conveys the
information one might like to have.

Rename the device "id" field in struct rbd_dev to be "dev_id" to
make it a little more obvious what we're dealing with without having
to think more about context.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c