diff options
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r-- | drivers/md/dm-ioctl.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 6e1b51d748ac..361d50b6469f 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -74,7 +74,6 @@ static int dm_hash_init(void) | |||
74 | static void dm_hash_exit(void) | 74 | static void dm_hash_exit(void) |
75 | { | 75 | { |
76 | dm_hash_remove_all(0); | 76 | dm_hash_remove_all(0); |
77 | devfs_remove(DM_DIR); | ||
78 | } | 77 | } |
79 | 78 | ||
80 | /*----------------------------------------------------------------- | 79 | /*----------------------------------------------------------------- |
@@ -171,15 +170,6 @@ static void free_cell(struct hash_cell *hc) | |||
171 | } | 170 | } |
172 | 171 | ||
173 | /* | 172 | /* |
174 | * devfs stuff. | ||
175 | */ | ||
176 | static int unregister_with_devfs(struct hash_cell *hc) | ||
177 | { | ||
178 | devfs_remove(DM_DIR"/%s", hc->name); | ||
179 | return 0; | ||
180 | } | ||
181 | |||
182 | /* | ||
183 | * The kdev_t and uuid of a device can never change once it is | 173 | * The kdev_t and uuid of a device can never change once it is |
184 | * initially inserted. | 174 | * initially inserted. |
185 | */ | 175 | */ |
@@ -234,7 +224,6 @@ static void __hash_remove(struct hash_cell *hc) | |||
234 | /* remove from the dev hash */ | 224 | /* remove from the dev hash */ |
235 | list_del(&hc->uuid_list); | 225 | list_del(&hc->uuid_list); |
236 | list_del(&hc->name_list); | 226 | list_del(&hc->name_list); |
237 | unregister_with_devfs(hc); | ||
238 | dm_set_mdptr(hc->md, NULL); | 227 | dm_set_mdptr(hc->md, NULL); |
239 | 228 | ||
240 | table = dm_get_table(hc->md); | 229 | table = dm_get_table(hc->md); |
@@ -330,8 +319,6 @@ static int dm_hash_rename(const char *old, const char *new) | |||
330 | /* | 319 | /* |
331 | * rename and move the name cell. | 320 | * rename and move the name cell. |
332 | */ | 321 | */ |
333 | unregister_with_devfs(hc); | ||
334 | |||
335 | list_del(&hc->name_list); | 322 | list_del(&hc->name_list); |
336 | old_name = hc->name; | 323 | old_name = hc->name; |
337 | hc->name = new_name; | 324 | hc->name = new_name; |