Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19442
b: refs/heads/master
c: 5746719
h: refs/heads/master
v: v3
  • Loading branch information
Horst Hummel authored and Linus Torvalds committed Feb 1, 2006
1 parent 1c49d81 commit 6267314
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 600b5d163d7434332539cac7be00f649cbbfedcc
refs/heads/master: 57467195d1581e354998d5cc35dfd7a12d6e0a24
9 changes: 8 additions & 1 deletion trunk/drivers/s390/block/dasd_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,15 @@ dasd_ioctl_information(struct block_device *bdev, int no, long args)
dasd_info->cu_model = cdev->id.cu_model;
dasd_info->dev_type = cdev->id.dev_type;
dasd_info->dev_model = cdev->id.dev_model;
dasd_info->open_count = atomic_read(&device->open_count);
dasd_info->status = device->state;
/*
* The open_count is increased for every opener, that includes
* the blkdev_get in dasd_scan_partitions.
* This must be hidden from user-space.
*/
dasd_info->open_count = atomic_read(&device->open_count);
if (!device->bdev)
dasd_info->open_count++;

/*
* check if device is really formatted
Expand Down

0 comments on commit 6267314

Please sign in to comment.