diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 18:25:33 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 18:25:33 -0400 |
| commit | 6e80e8ed5eb92d0112674aabe82951266a6a1051 (patch) | |
| tree | 4913d191cd088f355b92109af5ffa7d75e15ae4a /fs/partitions/sun.c | |
| parent | 6969a434737dd82f7343e3fcd529bc320508d9fc (diff) | |
| parent | ee9a3607fb03e804ddf624544105f4e34260c380 (diff) | |
Merge branch 'for-2.6.35' of git://git.kernel.dk/linux-2.6-block
* 'for-2.6.35' of git://git.kernel.dk/linux-2.6-block: (86 commits)
pipe: set lower and upper limit on max pages in the pipe page array
pipe: add support for shrinking and growing pipes
drbd: This is now equivalent to drbd release 8.3.8rc1
drbd: Do not free p_uuid early, this is done in the exit code of the receiver
drbd: Null pointer deref fix to the large "multi bio rewrite"
drbd: Fix: Do not detach, if a bio with a barrier fails
drbd: Ensure to not trigger late-new-UUID creation multiple times
drbd: Do not Oops when C_STANDALONE when uuid gets generated
writeback: fix mixed up arguments to bdi_start_writeback()
writeback: fix problem with !CONFIG_BLOCK compilation
block: improve automatic native capacity unlocking
block: use struct parsed_partitions *state universally in partition check code
block,ide: simplify bdops->set_capacity() to ->unlock_native_capacity()
block: restart partition scan after resizing a device
buffer: make invalidate_bdev() drain all percpu LRU add caches
block: remove all rcu head initializations
writeback: fixups for !dirty_writeback_centisecs
writeback: bdi_writeback_task() must set task state before calling schedule()
writeback: ensure that WB_SYNC_NONE writeback with sb pinned is sync
drivers/block/drbd: Use kzalloc
...
Diffstat (limited to 'fs/partitions/sun.c')
| -rw-r--r-- | fs/partitions/sun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/partitions/sun.c b/fs/partitions/sun.c index c95e6a62c01d..a32660e25f7f 100644 --- a/fs/partitions/sun.c +++ b/fs/partitions/sun.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include "check.h" | 10 | #include "check.h" |
| 11 | #include "sun.h" | 11 | #include "sun.h" |
| 12 | 12 | ||
| 13 | int sun_partition(struct parsed_partitions *state, struct block_device *bdev) | 13 | int sun_partition(struct parsed_partitions *state) |
| 14 | { | 14 | { |
| 15 | int i; | 15 | int i; |
| 16 | __be16 csum; | 16 | __be16 csum; |
| @@ -61,7 +61,7 @@ int sun_partition(struct parsed_partitions *state, struct block_device *bdev) | |||
| 61 | int use_vtoc; | 61 | int use_vtoc; |
| 62 | int nparts; | 62 | int nparts; |
| 63 | 63 | ||
| 64 | label = (struct sun_disklabel *)read_dev_sector(bdev, 0, §); | 64 | label = read_part_sector(state, 0, §); |
| 65 | if (!label) | 65 | if (!label) |
| 66 | return -1; | 66 | return -1; |
| 67 | 67 | ||
| @@ -78,7 +78,7 @@ int sun_partition(struct parsed_partitions *state, struct block_device *bdev) | |||
| 78 | csum ^= *ush--; | 78 | csum ^= *ush--; |
| 79 | if (csum) { | 79 | if (csum) { |
| 80 | printk("Dev %s Sun disklabel: Csum bad, label corrupted\n", | 80 | printk("Dev %s Sun disklabel: Csum bad, label corrupted\n", |
| 81 | bdevname(bdev, b)); | 81 | bdevname(state->bdev, b)); |
| 82 | put_dev_sector(sect); | 82 | put_dev_sector(sect); |
| 83 | return 0; | 83 | return 0; |
| 84 | } | 84 | } |
