dm ioctl: introduce __get_dev_cell
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Aug 2011 11:32:06 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:06 +0000 (12:32 +0100)
commitba2e19b0f4ccd6920fe175a86521ff18ede260cb
tree25a9533cfbd1946da36483c3172914b9ea1f51cb
parent0ddf9644cc26e74ed671525e61a17bdbebf18da6
dm ioctl: introduce __get_dev_cell

Move logic to find device based on major/minor number to a separate
function __get_dev_cell (similar to __get_uuid_cell and __get_name_cell).
This makes the function __find_device_hash_cell more straightforward.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-ioctl.c