diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/block_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 8cc144ffc382..4346468139e8 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -1031,7 +1031,7 @@ do_open(struct block_device *bdev, struct file *file, unsigned int subclass) | |||
1031 | rescan_partitions(bdev->bd_disk, bdev); | 1031 | rescan_partitions(bdev->bd_disk, bdev); |
1032 | } else { | 1032 | } else { |
1033 | mutex_lock_nested(&bdev->bd_contains->bd_mutex, | 1033 | mutex_lock_nested(&bdev->bd_contains->bd_mutex, |
1034 | BD_MUTEX_PARTITION); | 1034 | BD_MUTEX_WHOLE); |
1035 | bdev->bd_contains->bd_part_count++; | 1035 | bdev->bd_contains->bd_part_count++; |
1036 | mutex_unlock(&bdev->bd_contains->bd_mutex); | 1036 | mutex_unlock(&bdev->bd_contains->bd_mutex); |
1037 | } | 1037 | } |