File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ static int vboxsf_fill_super(struct super_block *sb, struct fs_context *fc)
155
155
}
156
156
}
157
157
158
- sbi -> bdi_id = ida_simple_get (& vboxsf_bdi_ida , 0 , 0 , GFP_KERNEL );
158
+ sbi -> bdi_id = ida_alloc (& vboxsf_bdi_ida , GFP_KERNEL );
159
159
if (sbi -> bdi_id < 0 ) {
160
160
err = sbi -> bdi_id ;
161
161
goto fail_free ;
@@ -221,7 +221,7 @@ static int vboxsf_fill_super(struct super_block *sb, struct fs_context *fc)
221
221
vboxsf_unmap_folder (sbi -> root );
222
222
fail_free :
223
223
if (sbi -> bdi_id >= 0 )
224
- ida_simple_remove (& vboxsf_bdi_ida , sbi -> bdi_id );
224
+ ida_free (& vboxsf_bdi_ida , sbi -> bdi_id );
225
225
if (sbi -> nls )
226
226
unload_nls (sbi -> nls );
227
227
fail_destroy_idr :
@@ -269,7 +269,7 @@ static void vboxsf_put_super(struct super_block *sb)
269
269
270
270
vboxsf_unmap_folder (sbi -> root );
271
271
if (sbi -> bdi_id >= 0 )
272
- ida_simple_remove (& vboxsf_bdi_ida , sbi -> bdi_id );
272
+ ida_free (& vboxsf_bdi_ida , sbi -> bdi_id );
273
273
if (sbi -> nls )
274
274
unload_nls (sbi -> nls );
275
275
You can’t perform that action at this time.
0 commit comments