diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/udf/misc.c | 13 | ||||
-rw-r--r-- | fs/udf/super.c | 2 |
2 files changed, 6 insertions, 9 deletions
diff --git a/fs/udf/misc.c b/fs/udf/misc.c index 581b6e4cc591..96996204d928 100644 --- a/fs/udf/misc.c +++ b/fs/udf/misc.c | |||
@@ -203,16 +203,15 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, | |||
203 | { | 203 | { |
204 | tag *tag_p; | 204 | tag *tag_p; |
205 | struct buffer_head *bh = NULL; | 205 | struct buffer_head *bh = NULL; |
206 | struct udf_sb_info *sbi = UDF_SB(sb); | ||
207 | 206 | ||
208 | /* Read the block */ | 207 | /* Read the block */ |
209 | if (block == 0xFFFFFFFF) | 208 | if (block == 0xFFFFFFFF) |
210 | return NULL; | 209 | return NULL; |
211 | 210 | ||
212 | bh = udf_tread(sb, block + sbi->s_session); | 211 | bh = udf_tread(sb, block); |
213 | if (!bh) { | 212 | if (!bh) { |
214 | udf_debug("block=%d, location=%d: read failed\n", | 213 | udf_debug("block=%d, location=%d: read failed\n", |
215 | block + sbi->s_session, location); | 214 | block, location); |
216 | return NULL; | 215 | return NULL; |
217 | } | 216 | } |
218 | 217 | ||
@@ -222,8 +221,7 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, | |||
222 | 221 | ||
223 | if (location != le32_to_cpu(tag_p->tagLocation)) { | 222 | if (location != le32_to_cpu(tag_p->tagLocation)) { |
224 | udf_debug("location mismatch block %u, tag %u != %u\n", | 223 | udf_debug("location mismatch block %u, tag %u != %u\n", |
225 | block + sbi->s_session, | 224 | block, le32_to_cpu(tag_p->tagLocation), location); |
226 | le32_to_cpu(tag_p->tagLocation), location); | ||
227 | goto error_out; | 225 | goto error_out; |
228 | } | 226 | } |
229 | 227 | ||
@@ -247,9 +245,8 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, | |||
247 | le16_to_cpu(tag_p->descCRCLength), 0)) | 245 | le16_to_cpu(tag_p->descCRCLength), 0)) |
248 | return bh; | 246 | return bh; |
249 | 247 | ||
250 | udf_debug("Crc failure block %d: crc = %d, crclen = %d\n", | 248 | udf_debug("Crc failure block %d: crc = %d, crclen = %d\n", block, |
251 | block + sbi->s_session, le16_to_cpu(tag_p->descCRC), | 249 | le16_to_cpu(tag_p->descCRC), le16_to_cpu(tag_p->descCRCLength)); |
252 | le16_to_cpu(tag_p->descCRCLength)); | ||
253 | 250 | ||
254 | error_out: | 251 | error_out: |
255 | brelse(bh); | 252 | brelse(bh); |
diff --git a/fs/udf/super.c b/fs/udf/super.c index 650f20fe9d62..787cedf6cc07 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -587,7 +587,7 @@ static int udf_remount_fs(struct super_block *sb, int *flags, char *options) | |||
587 | static int udf_vrs(struct super_block *sb, int silent) | 587 | static int udf_vrs(struct super_block *sb, int silent) |
588 | { | 588 | { |
589 | struct volStructDesc *vsd = NULL; | 589 | struct volStructDesc *vsd = NULL; |
590 | int sector = 32768; | 590 | loff_t sector = 32768; |
591 | int sectorsize; | 591 | int sectorsize; |
592 | struct buffer_head *bh = NULL; | 592 | struct buffer_head *bh = NULL; |
593 | int iso9660 = 0; | 593 | int iso9660 = 0; |