aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r--drivers/md/dm-ioctl.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 181971a978b..6e1b51d748a 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -173,16 +173,6 @@ static void free_cell(struct hash_cell *hc)
173/* 173/*
174 * devfs stuff. 174 * devfs stuff.
175 */ 175 */
176static int register_with_devfs(struct hash_cell *hc)
177{
178 struct gendisk *disk = dm_disk(hc->md);
179
180 devfs_mk_bdev(MKDEV(disk->major, disk->first_minor),
181 S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP,
182 DM_DIR "/%s", hc->name);
183 return 0;
184}
185
186static int unregister_with_devfs(struct hash_cell *hc) 176static int unregister_with_devfs(struct hash_cell *hc)
187{ 177{
188 devfs_remove(DM_DIR"/%s", hc->name); 178 devfs_remove(DM_DIR"/%s", hc->name);
@@ -225,7 +215,6 @@ static int dm_hash_insert(const char *name, const char *uuid, struct mapped_devi
225 } 215 }
226 list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid)); 216 list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid));
227 } 217 }
228 register_with_devfs(cell);
229 dm_get(md); 218 dm_get(md);
230 dm_set_mdptr(md, cell); 219 dm_set_mdptr(md, cell);
231 up_write(&_hash_lock); 220 up_write(&_hash_lock);
@@ -348,9 +337,6 @@ static int dm_hash_rename(const char *old, const char *new)
348 hc->name = new_name; 337 hc->name = new_name;
349 list_add(&hc->name_list, _name_buckets + hash_str(new_name)); 338 list_add(&hc->name_list, _name_buckets + hash_str(new_name));
350 339
351 /* rename the device node in devfs */
352 register_with_devfs(hc);
353
354 /* 340 /*
355 * Wake up any dm event waiters. 341 * Wake up any dm event waiters.
356 */ 342 */