Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91841
b: refs/heads/master
c: f4bcbbd
h: refs/heads/master
i:
  91839: 02fc839
v: v3
  • Loading branch information
Sebastian Manciulea authored and Jan Kara committed Apr 17, 2008
1 parent 41de9bc commit 4c1b86b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 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: 96200be3077c5ede16a90b33aca815b444e66043
refs/heads/master: f4bcbbd92ebda971f7c2cd1132b399808ed6cf9b
13 changes: 5 additions & 8 deletions trunk/fs/udf/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,15 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block,
{
tag *tag_p;
struct buffer_head *bh = NULL;
struct udf_sb_info *sbi = UDF_SB(sb);

/* Read the block */
if (block == 0xFFFFFFFF)
return NULL;

bh = udf_tread(sb, block + sbi->s_session);
bh = udf_tread(sb, block);
if (!bh) {
udf_debug("block=%d, location=%d: read failed\n",
block + sbi->s_session, location);
block, location);
return NULL;
}

Expand All @@ -222,8 +221,7 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block,

if (location != le32_to_cpu(tag_p->tagLocation)) {
udf_debug("location mismatch block %u, tag %u != %u\n",
block + sbi->s_session,
le32_to_cpu(tag_p->tagLocation), location);
block, le32_to_cpu(tag_p->tagLocation), location);
goto error_out;
}

Expand All @@ -247,9 +245,8 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block,
le16_to_cpu(tag_p->descCRCLength), 0))
return bh;

udf_debug("Crc failure block %d: crc = %d, crclen = %d\n",
block + sbi->s_session, le16_to_cpu(tag_p->descCRC),
le16_to_cpu(tag_p->descCRCLength));
udf_debug("Crc failure block %d: crc = %d, crclen = %d\n", block,
le16_to_cpu(tag_p->descCRC), le16_to_cpu(tag_p->descCRCLength));

error_out:
brelse(bh);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ static int udf_remount_fs(struct super_block *sb, int *flags, char *options)
static int udf_vrs(struct super_block *sb, int silent)
{
struct volStructDesc *vsd = NULL;
int sector = 32768;
loff_t sector = 32768;
int sectorsize;
struct buffer_head *bh = NULL;
int iso9660 = 0;
Expand Down

0 comments on commit 4c1b86b

Please sign in to comment.