File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2338,7 +2338,6 @@ static void blkfront_connect(struct blkfront_info *info)
2338
2338
unsigned long sector_size ;
2339
2339
unsigned int physical_sector_size ;
2340
2340
unsigned int binfo ;
2341
- char * envp [] = { "RESIZE=1" , NULL };
2342
2341
int err , i ;
2343
2342
struct blkfront_ring_info * rinfo ;
2344
2343
@@ -2354,10 +2353,7 @@ static void blkfront_connect(struct blkfront_info *info)
2354
2353
return ;
2355
2354
printk (KERN_INFO "Setting capacity to %Lu\n" ,
2356
2355
sectors );
2357
- set_capacity (info -> gd , sectors );
2358
- revalidate_disk (info -> gd );
2359
- kobject_uevent_env (& disk_to_dev (info -> gd )-> kobj ,
2360
- KOBJ_CHANGE , envp );
2356
+ set_capacity_revalidate_and_notify (info -> gd , sectors , true);
2361
2357
2362
2358
return ;
2363
2359
case BLKIF_STATE_SUSPENDED :
You can’t perform that action at this time.
0 commit comments