Re: [PATCH V2 1/2] block: Set inode of block_device size to zero when delete gendisk.

2013-09-25 Thread Jeff Moyer
majianpeng writes: > When remove gendisk, set the size of inode of block_device to zero. > This is mainly let the vfs know disk removed. > > Signed-off-by: Jianpeng Ma Reviewed-by: Jeff Moyer > --- > block/genhd.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/block/genhd.c b/

[PATCH V2 1/2] block: Set inode of block_device size to zero when delete gendisk.

2013-09-16 Thread majianpeng
When remove gendisk, set the size of inode of block_device to zero. This is mainly let the vfs know disk removed. Signed-off-by: Jianpeng Ma --- block/genhd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index dadf42b..9a4c245 100644 --- a/block/genhd.c