]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdab8c59961625efb612c5467028d24bde4cdae94
tree25a9533cfbd1946da36483c3172914b9ea1f51cb
parentabf092fc2e4304e440243c9ed27b5c1fa1290584
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