diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-04 20:22:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-04 20:22:14 -0400 |
commit | 3d0a8d10cfb4cc3d1877c29a866ee7d8a46aa2fa (patch) | |
tree | 11a85044d1472f5972ae47ce10a2f446ad981e9f /block | |
parent | b4fdcb02f1e39c27058a885905bd0277370ba441 (diff) | |
parent | a0eda62552eba4e1f92d5354bb65c68fb6b45f87 (diff) |
Merge branch 'for-3.2/drivers' of git://git.kernel.dk/linux-block
* 'for-3.2/drivers' of git://git.kernel.dk/linux-block: (30 commits)
virtio-blk: use ida to allocate disk index
hpsa: add small delay when using PCI Power Management to reset for kump
cciss: add small delay when using PCI Power Management to reset for kump
xen/blkback: Fix two races in the handling of barrier requests.
xen/blkback: Check for proper operation.
xen/blkback: Fix the inhibition to map pages when discarding sector ranges.
xen/blkback: Report VBD_WSECT (wr_sect) properly.
xen/blkback: Support 'feature-barrier' aka old-style BARRIER requests.
xen-blkfront: plug device number leak in xlblk_init() error path
xen-blkfront: If no barrier or flush is supported, use invalid operation.
xen-blkback: use kzalloc() in favor of kmalloc()+memset()
xen-blkback: fixed indentation and comments
xen-blkfront: fix a deadlock while handling discard response
xen-blkfront: Handle discard requests.
xen-blkback: Implement discard requests ('feature-discard')
xen-blkfront: add BLKIF_OP_DISCARD and discard request struct
drivers/block/loop.c: remove unnecessary bdev argument from loop_clr_fd()
drivers/block/loop.c: emit uevent on auto release
drivers/block/cpqarray.c: use pci_dev->revision
loop: always allow userspace partitions and optionally support automatic scanning
...
Fic up trivial header file includsion conflict in drivers/block/loop.c
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 4 | ||||
-rw-r--r-- | block/ioctl.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/block/genhd.c b/block/genhd.c index 024fc3944fb..9253839714f 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -537,7 +537,7 @@ void register_disk(struct gendisk *disk) | |||
537 | disk->slave_dir = kobject_create_and_add("slaves", &ddev->kobj); | 537 | disk->slave_dir = kobject_create_and_add("slaves", &ddev->kobj); |
538 | 538 | ||
539 | /* No minors to use for partitions */ | 539 | /* No minors to use for partitions */ |
540 | if (!disk_partitionable(disk)) | 540 | if (!disk_part_scan_enabled(disk)) |
541 | goto exit; | 541 | goto exit; |
542 | 542 | ||
543 | /* No such device (e.g., media were just removed) */ | 543 | /* No such device (e.g., media were just removed) */ |
@@ -848,7 +848,7 @@ static int show_partition(struct seq_file *seqf, void *v) | |||
848 | char buf[BDEVNAME_SIZE]; | 848 | char buf[BDEVNAME_SIZE]; |
849 | 849 | ||
850 | /* Don't show non-partitionable removeable devices or empty devices */ | 850 | /* Don't show non-partitionable removeable devices or empty devices */ |
851 | if (!get_capacity(sgp) || (!disk_partitionable(sgp) && | 851 | if (!get_capacity(sgp) || (!disk_max_parts(sgp) && |
852 | (sgp->flags & GENHD_FL_REMOVABLE))) | 852 | (sgp->flags & GENHD_FL_REMOVABLE))) |
853 | return 0; | 853 | return 0; |
854 | if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO) | 854 | if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO) |
diff --git a/block/ioctl.c b/block/ioctl.c index 1124cd29726..5c74efc0190 100644 --- a/block/ioctl.c +++ b/block/ioctl.c | |||
@@ -101,7 +101,7 @@ static int blkdev_reread_part(struct block_device *bdev) | |||
101 | struct gendisk *disk = bdev->bd_disk; | 101 | struct gendisk *disk = bdev->bd_disk; |
102 | int res; | 102 | int res; |
103 | 103 | ||
104 | if (!disk_partitionable(disk) || bdev != bdev->bd_contains) | 104 | if (!disk_part_scan_enabled(disk) || bdev != bdev->bd_contains) |
105 | return -EINVAL; | 105 | return -EINVAL; |
106 | if (!capable(CAP_SYS_ADMIN)) | 106 | if (!capable(CAP_SYS_ADMIN)) |
107 | return -EACCES; | 107 | return -EACCES; |